Advertisement
Guest User

Para el noob de slow que lo como con monosplits jaja xd

a guest
Feb 24th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. // ==UserScript==
  2. // @name GOTA EXTENSIÓN - CLAN 【₱€】
  3. // @version 1.0.8
  4. // @namespace theoxt.com
  5. // @description Peruvian Extension By Theo
  6. // @raidcall 11522949
  7. // @discord https://discord.gg/c9Pv8YD
  8. // @author Theo & Swykz
  9. // @match http://gota.io/web/*
  10. // @updateURL http://theoxt.com/extensiones/gotapev105/install.user.js
  11. // @downloadURL http://theoxt.com/extensiones/gotapev105/install.user.js
  12. // @icon https://i.imgur.com/zkqjlO2.jpg
  13. // @run-at document-start
  14. // @grant GM_xmlhttpRequest
  15. // ==/UserScript==
  16.  
  17. var SCRIPT = "http://theoxt.com/extensiones/gotapev105/core.js?v=" + new Date().getSeconds();
  18. var STYLE = "http://theoxt.com/extensiones/gotapev105/style.css?v=" + new Date().getSeconds();
  19. var BOOTSTRAP_CSS = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css?v=" + new Date().getSeconds();
  20. var BOOTSTRAP_JS = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js?v=" + new Date().getSeconds();
  21. var ICONS = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css?v=" + new Date().getSeconds();
  22.  
  23. window.stop();
  24. document.documentElement.innerHTML = "";
  25. "gota.io" == location.host && "/" == location.pathname && (location.href = "http://gota.io/web/crowns" + location.hash);
  26. GM_xmlhttpRequest({
  27. method : "GET",
  28. url : "http://gota.io/web/",
  29. onload : function(e) {
  30. var doc = injectFiles(e.responseText);
  31. document.open();
  32. document.write(doc);
  33. document.close();
  34. }
  35. });
  36.  
  37. function injectFiles(page) {
  38. page = page.replace(/(<script.*?src=\"*?gota.*?\"><\/script>)/i, tagScript(BOOTSTRAP_JS) + tagScript(SCRIPT));
  39. page = page.replace(/(<link.*?href="style.css.*?" \/>)/i, "$1" + tagStyle(BOOTSTRAP_CSS) + tagStyle(ICONS) + tagStyle(STYLE));
  40. // page = page.replace(/(<script src=\'.*?recaptcha\/api.js\'.*?><\/script>)/i, "");
  41. return page;
  42. }
  43.  
  44. function tagScript(url) {
  45. return '<script src="' + url + '"></script>';
  46. }
  47.  
  48. function tagStyle(url) {
  49. return '<link rel="stylesheet" href="' + url + '" />';
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement