SHARE
TWEET

Untitled

a guest Oct 16th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         b_Klan_do_znaj
  3. // @version      1.0
  4. // @description  b_Klan_do_znaj
  5. // @author       Tak
  6. // @match        http://*.margonem.pl/
  7. // @grant        none
  8. // ==/UserScript==
  9.  
  10. (() => {
  11.     const letter = 'R';
  12.     document.addEventListener('keyup', event => {
  13.         if(!['INPUT', 'TEXTAREA'].includes(event.target.tagName) && event.key.toUpperCase() === letter){
  14.             if(typeof window.g.party === 'object' && window.g.party[window.hero.id].r !== 1) return;
  15.             Object.entries(window.g.other).forEach(([id, { relation }]) => {
  16.                 if(['fr', 'cl'].includes(relation) && window.g.party[id] === undefined){
  17.                     window.friendInviteParty(id);
  18.                 }
  19.             })
  20.         }
  21.     })
  22. })()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top