Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name b_Klan_do_znaj
- // @version 1.0
- // @description b_Klan_do_znaj
- // @author Tak
- // @match http://*.margonem.pl/
- // @grant none
- // ==/UserScript==
- (() => {
- const letter = 'R';
- 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);
- }
- })
- }
- })
- })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement