Advertisement
Guest User

Yet version 1.1 of AgarLol, bugfixing

a guest
Jul 4th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. // ==UserScript==
  2. // @name AgarLol - By gobelpepitai
  3. // @namespace AgarLol
  4. // @description That's not cheating! ;P
  5. // @run-at document-start
  6. // @match http://agar.io/
  7. // @match https://agar.io/
  8. // @version 0.1
  9. // ==/UserScript==
  10.  
  11. window.addEventListener('beforescriptexecute', function (e) {
  12. // Executed just before executing a script
  13. if (e.target.innerHTML.search("getContext") == -1) return;
  14. // Prevent the script from executing
  15. e.stopPropagation();
  16. e.preventDefault();
  17. // ...and then we execute the new JS file, located at pastebin.com/raw.php?i=TdJRc0P5
  18. var script = document.createElement('script');
  19. script.src = document.location.protocol + '//pastebin.com/raw.php?i=TdJRc0P5';
  20. document.getElementsByTagName('head') [0].appendChild(script);
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement