Remover

With this Script you can edit every Website.

当前为 2016-07-13 提交的版本,查看 最新版本

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