Remover

With this Script you can edit every Website.

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

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