![avatar](http://wklejamy.pl/img/default-avatar.png)
Untitled
Guest 291 24th Feb, 2024
// ==UserScript==
// @name dodawanie clan i friend na mapie
// @namespace http://tampermonkey.net/
// @version 0.1
// @description dodaje i jest fajnie
// @author Saikel
// @match https://*.margonem.pl/*
// @match http://*.margonem.pl/*
// @grant none
// ==/UserScript==
(() => {
const letter = 'R'; // tu se zmienisz klawisz jak coś
document.addEventListener('keyup', event => {
if(!['INPUT', 'TEXTAREA'].includes(event.target.tagName) && event.key.toUpperCase() === letter){
if(typeof window.g.party === 'object' && window.g.party[window.hero.id].r !== 1) return;
Object.entries(window.g.other).forEach(([id, { relation }]) => {
if(['fr', 'cl'].includes(relation) && window.g.party[id] === undefined){
window.friendInviteParty(id);
}
})
}
})
})()
To share this paste please copy this url and send to your friends
RAW Paste Data