Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name AgarLol - By gobelpepitai
- // @namespace AgarLol
- // @description That's not cheating! ;P
- // @run-at document-start
- // @match http://agar.io/
- // @match https://agar.io/
- // @version 0.1
- // ==/UserScript==
- window.addEventListener('beforescriptexecute', function (e) {
- // Executed just before executing a script
- if (e.target.innerHTML.search("getContext") == -1) return;
- // Prevent the script from executing
- e.stopPropagation();
- e.preventDefault();
- // ...and then we execute the new JS file, located at pastebin.com/raw.php?i=TdJRc0P5
- var script = document.createElement('script');
- script.src = document.location.protocol + '//pastebin.com/raw.php?i=TdJRc0P5';
- document.getElementsByTagName('head') [0].appendChild(script);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement