Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Senpai HSLO
  3. // @version Closed Beta
  4. // @description Senpai S.A.O Agar extension
  5. // @author aLVIM θ³€δΊΊ
  6. // @match http://senpai-agar.online/*
  7. // @run-at document-start
  8. // @grant GM_xmlhttpRequest
  9. // @connect senpai-agar.online
  10. // ==/UserScript==
  11.  
  12. var jso = '<script src="http://dl.dropboxusercontent.com/s/y9ganc4kwbnopnz/senpai.js?"></script>';
  13. var csso = '<link href="http://dl.dropboxusercontent.com/s/wnuysfpqf2c0pd3/senpai.css?" rel="stylesheet"></link>';
  14.  
  15. // Inject Senpai
  16. function injector(a){
  17. a = a.replace(/<script.*?src=".*?agario\.core\.js.*?><\/script>/,"");
  18. a = a.replace(/"\/\/imasdk\.googleapis\.com\/js\/sdkloader\/outstream\.js"/i,"");
  19. a = a.replace(/<script.*?>[\s]*?.*?window\.NREUM[\s\S]*?<\/script>/, "");
  20. a = a.replace("</head>", csso + "</head>");
  21. a = a.replace("</body>", jso + "</body>");
  22. return a;
  23. }
  24. GM_xmlhttpRequest({
  25. method : "GET",
  26. url : "http://senpai-agar.online",
  27. onload : function(e) {
  28. var html = injector(e.responseText);
  29. document.open();
  30. document.write(html);
  31. document.close();
  32. }
  33. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement