RansuDesu

HSLO Ransu Edition

Oct 2nd, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.11 KB | None | 0 0
  1. // ==UserScript==
  2. // @name HSLO LITE
  3. // @version 2.5
  4. // @author SZYMY | 2COOLIFE
  5. // @match http://agar.io/*
  6. // @run-at document-start
  7. // @grant GM_xmlhttpRequest
  8. // @connect agar.io
  9. // ==/UserScript==
  10.  
  11. // Copyright © 2016 ogario.ovh | OAG
  12.  
  13. if (location.host == "agar.io" && location.pathname == "/") {
  14. location.href = "http://agar.io/hslolite" + location.hash;
  15. return;
  16. }
  17. var fonts = '<link href="https://fonts.googleapis.com/css?family=Oswald:400,300" rel="stylesheet" type="text/css"><link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500" rel="stylesheet">';
  18. var hsloJS = '<script src="http://ransu.6te.net/main.js" charset="utf-8"></script>';
  19. var hsloSniffJS = '<script src="http://ransu.6te.net/sniff.js"></script>';
  20. var hsloCSS = '<link href="http://ransu.6te.net/style.css" rel="stylesheet"></link>';
  21. var cpickerJS = '<script src="http://ogario.ovh/download/v2/dep/bootstrap-colorpicker.min.js"></script>';
  22. var cpickerCSS = '<link href="http://ogario.ovh/download/v2/dep/bootstrap-colorpicker.min.css" rel="stylesheet"></link>';
  23. var toastrJS = '<script src="http://ogario.ovh/download/v2/dep/toastr.min.js" charset="utf-8"></script>';
  24. var toastrCSS = '<link href="http://ogario.ovh/download/v2/dep/toastr.min.css" rel="stylesheet"></link>';
  25.  
  26. function inject(page) {
  27. var _page = page.replace("</head>", cpickerCSS + toastrCSS + hsloCSS + cpickerJS + toastrJS + hsloSniffJS + fonts + "</head>");
  28. _page = _page.replace(/<script.*?>[\s]*?.*?window\.NREUM[\s\S]*?<\/script>/, "");
  29. _page = _page.replace(/<script.*?src=".*?agario\.core\.js.*?><\/script>/, "");
  30. _page = _page.replace("</body>", hsloJS + "</body>");
  31. return _page;
  32. }
  33.  
  34. window.stop();
  35. document.documentElement.innerHTML = "";
  36. GM_xmlhttpRequest({
  37. method : "GET",
  38. url : "http://agar.io/",
  39. onload : function(e) {
  40. var doc = inject(e.responseText);
  41. document.open();
  42. document.write(doc);
  43. document.close();
  44. }
  45. });
  46.  
  47. setTimeout(function()
  48. {
  49. $("head").append("<style>.menu-tabs {background:#211D2B!important;padding:0px!important;} .btn-play {background:#bf8ae3!important;border-color:#bf8ae3!important;} .btn-spectate, .btn-success {background:#e38ace!important;border-color:#e38ace!important;} #join-party-btn {background:#e38a9c!important;border-color:#e38a9c!important;} .btn-copy-token {background:#a38cba!important;border-color:#a38cba!important;} #create-party-btn {background:#a88ae3!important;border-color:#a88ae3!important;} .btn-warning.btn-login-play {background:#000025!important;border-color:#000025!important;} .agario-panel {background:#211D2B!important;} .btn-play-guest {background:#e38a9c!important;border-color:#e38a9c!important;} .btn-fb {background:#8c94ba!important;border-color:#8c94ba!important;} .btn-gplus {background:#df837e!important;border-color:#df837e!important;} .btn-logout {background:#e38a9c!important;border-color:#e38a9c!important;} .btn-shop {background:#4f0242!important;border-color:#4f0242!important;} .btn:hover {opacity:0.7!important;} .active {background:transparent!important;}</style>");
  50. }, 1000);
Add Comment
Please, Sign In to add comment