Remover

With this Script you can edit every Website.

当前为 2015-09-09 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Remover
  3. // @namespace http://scriptz.de.to/
  4. // @version 4.5
  5. // @description With this Script you can edit every Website.
  6. // @author Scriptz
  7. // @copyright 2013+ , Scriptz
  8. // @include http://*/*
  9. // @include https://*/*
  10. // @match https://dl.dropbox.com/sh/dk38s1qw7ice7nq/*/*
  11. // @icon https://dl.dropbox.com/sh/dk38s1qw7ice7nq/nmfu4e3y2S/Icon48x48.png
  12. // @icon64 https://dl.dropbox.com/sh/dk38s1qw7ice7nq/FaeEFBlv4b/Icon64x64.png
  13. // @updateuURL http://file1.npage.de/007324/77/html/remover.user.js
  14. // @priority 9999
  15. // ==/UserScript==
  16.  
  17. // ==VAR==
  18. var work = "<a class='158704' onMouseout='load()'>Remover by Scriptz is on!</a><span class='158704'> <--- Mouseover to Stop.</span>";
  19. var Stopped = "<span class='158704'>Remover by Scriptz is off!</span>";
  20. // ==============
  21.  
  22. // ==START FUNCTION==
  23. body = document.body;
  24. if(body != null) {
  25. div2 = document.createElement("div");
  26. div2.setAttribute('id','first');
  27. div2.style.position = "fixed";
  28. div2.style.top = "0px";
  29. div2.style.right = "0px";
  30. div2.style.zIndex = "9999";
  31. div2.style.backgroundColor = "red";
  32. div2.style.opacity = 0.90;
  33. div2.style.border = "1px solid #ffffcc";
  34. div2.style.padding = "3px";
  35. div2.innerHTML = "<div id='button'><a class='158704' href='javascript:on()'>Start</a></div>"
  36. body.appendChild(div2);
  37. }
  38. unsafeWindow.on = function() {
  39. document.getElementById("hide").style.visibility='visible';
  40. document.getElementById('first').style.left = "0px";
  41. document.getElementsByTagName("title")[0].firstChild.data = "► Started.";
  42. (function() {
  43. var link = document.createElement('link');
  44. link.type = 'image/x-icon';
  45. link.rel = 'shortcut icon';
  46. link.href = 'http://file1.npage.de/007324/77/bilder/favicon.ico';
  47. document.getElementsByTagName('head')[0].appendChild(link);
  48. }());
  49. location.href="javascript:document.body.contentEditable='true'; document.designMode='on'; void 0";
  50. document.getElementById('button').innerHTML = work;
  51. }
  52. // ==============
  53.  
  54. // ==HIDE BUTTON==
  55. body = document.body;
  56. if(body != null) {
  57. div2 = document.createElement("div");
  58. div2.setAttribute('id','hide');
  59. div2.style.position = "fixed";
  60. div2.style.top = "40px";
  61. div2.style.right = "0px";
  62. div2.style.zIndex = "9999";
  63. div2.style.opacity = 0.90;
  64. div2.style.visibility ="hidden"
  65. div2.innerHTML = "<div id='img'><img onMouseout='imgload()' src='http://fs2.directupload.net/images/150909/sxcclyoz.png'></div>"
  66. body.appendChild(div2);
  67. }
  68. unsafeWindow.imgload = function() {
  69. document.getElementById("hide").style.visibility='hidden';
  70. document.getElementById("first").style.visibility='hidden';
  71. document.getElementById("show").style.visibility='visible';
  72. }
  73. // ==============
  74.  
  75. // ==SHOW BUTTON==
  76. body = document.body;
  77. if(body != null) {
  78. div2 = document.createElement("div");
  79. div2.setAttribute('id','show');
  80. div2.style.position = "fixed";
  81. div2.style.top = "0px";
  82. div2.style.right = "0px";
  83. div2.style.zIndex = "9999";
  84. div2.style.opacity = 0.90;
  85. div2.style.visibility ="hidden"
  86. div2.innerHTML = "<div id='img'><img onMouseout='loadone()' src='http://fs2.directupload.net/images/150909/7tae9l8k.png'></div>"
  87. body.appendChild(div2);
  88. }
  89. unsafeWindow.loadone = function() {
  90. document.getElementById("show").style.visibility='hidden';
  91. document.getElementById("first").style.visibility='visible';
  92. document.getElementById("hide").style.visibility='visible';
  93. }
  94. // ==============
  95.  
  96. // ==STOP FUNCTION==
  97. unsafeWindow.load = function() {
  98. document.getElementsByTagName("title")[0].firstChild.data = "Stopped.";
  99. location.href="javascript:document.body.contentEditable='false'; document.designMode='off'; void 0";
  100. document.getElementById('button').innerHTML = Stopped;
  101. window.setTimeout(function() { document.getElementById("first").style.visibility='hidden'; }, 10000);
  102. window.setTimeout(function() { document.getElementById("hide").style.visibility='hidden'; }, 10000);
  103. window.setTimeout(function() { document.getElementById("show").style.visibility='hidden'; }, 10000);
  104. }
  105. // ==============