Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  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. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement