Advertisement
Guest User

TSV Script with Powerups

a guest
Jun 6th, 2015
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. // ==UserScript==
  2. // @name tagpro-catstats
  3. // @namespace http://www.reddit.com/user/TOJO_IS_LIFE
  4. // @version 1.6.3
  5. // @description tagpro-catstats as a userscript
  6. // @include http://tagpro-*.koalabeast.com:*
  7. // @include http://tangent.jukejuice.com:*
  8. // @include http://maptest*.newcompte.fr:*
  9. // @copyright 2014+, TOJO
  10. // @author TOJO, ballparts version adding powerups
  11. // ==/UserScript==
  12.  
  13. (function() {
  14.  
  15. // simple ignore
  16. if(location.port < 8000)
  17. return;
  18.  
  19. function injectScript(path) {
  20. var script = document.createElement("script");
  21. script.setAttribute("type", "application/javascript");
  22. script.src = path;
  23. script.onload = removeScript;
  24. (document.head||document.documentElement).appendChild(script);
  25. }
  26.  
  27. function removeScript() {
  28. this.parentNode.removeChild(this);
  29. }
  30.  
  31. var scripts = [
  32. "//cdn.jsdelivr.net/filesaver.js/0.2/FileSaver.min.js",
  33. "https://cdn.rawgit.com/ballparts/tagpro-catstats-userscript/v1.6.3/catstats.js",
  34. ];
  35. scripts.forEach(injectScript);
  36.  
  37. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement