Remover

With this Script you can edit every Website.

当前为 2016-08-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Remover
  3. // @name:de Entferner
  4. // @namespace http://scriptz.de.to/
  5. // @version 5.1.0.6
  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. // ==VAR==
  19. var jslink = "javascript";
  20. var work = "<a class='158704' onMouseout='load()'>"+GM_info.script.name+" v"+GM_info.script.version+" is on!</a><span class='158704'> <--- Mouseover to Stop.</span>";
  21. var stopped = "<span class='158704'>"+GM_info.script.name+" is off!</span>";
  22. // ==============
  23.  
  24. // ==START FUNCTION==
  25. body = document.body;
  26. if(body !== null) {
  27. div2 = document.createElement("div");
  28. div2.setAttribute('id','first');
  29. div2.style.position = "fixed";
  30. div2.style.top = "0px";
  31. div2.style.right = "0px";
  32. div2.style.zIndex = "9999";
  33. div2.style.backgroundColor = "red";
  34. div2.style.opacity = 0.90;
  35. div2.style.border = "1px solid #ffffcc";
  36. div2.style.padding = "3px";
  37. div2.innerHTML = "<div id='button'><a class='158704' href='javascript:on()'>Start</a></div>";
  38. body.appendChild(div2);
  39. }
  40. unsafeWindow.on = function() {
  41. document.getElementById("hide").style.visibility='visible';
  42. document.getElementById('first').style.left = "0px";
  43. document.getElementsByTagName("title")[0].firstChild.data = "► "+GM_info.script.name+" v"+GM_info.script.version+" is on!";
  44. (function() {
  45. var link = document.createElement('link');
  46. link.type = 'image/x-icon';
  47. link.rel = 'shortcut icon';
  48. link.href = GM_info.script.icon;
  49. document.getElementsByTagName('head')[0].appendChild(link);
  50. }());
  51. location.href=jslink+":document.body.contentEditable='true'; document.designMode='on'; void 0";
  52. document.getElementById('button').innerHTML = work;
  53. console.info(GM_info.script.name+" v"+GM_info.script.version+" is on!\nCopyright: "+GM_info.script.copyright);
  54. console.warn(GM_info.script.name+" by "+GM_info.script.author+" is licensed under a [Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License](http://creativecommons.org/licenses/by-nc-nd/3.0/).");
  55. };
  56. // ==============
  57.  
  58. // ==HIDE BUTTON==
  59. body = document.body;
  60. if(body !== null) {
  61. div2 = document.createElement("div");
  62. div2.setAttribute('id','hide');
  63. div2.style.position = "fixed";
  64. div2.style.top = "40px";
  65. div2.style.right = "0px";
  66. div2.style.zIndex = "9999";
  67. div2.style.opacity = 0.90;
  68. div2.style.visibility ="hidden";
  69. div2.innerHTML = "<div id='img'><img onMouseout='imgload()' src='http://fs2.directupload.net/images/150909/sxcclyoz.png'></div>";
  70. body.appendChild(div2);
  71. }
  72. unsafeWindow.imgload = function() {
  73. document.getElementById("hide").style.visibility='hidden';
  74. document.getElementById("first").style.visibility='hidden';
  75. document.getElementById("show").style.visibility='visible';
  76. console.debug(GM_info.script.name+" toolbar is hidden!");
  77. };
  78. // ==============
  79.  
  80. // ==SHOW BUTTON==
  81. body = document.body;
  82. if(body !== null) {
  83. div2 = document.createElement("div");
  84. div2.setAttribute('id','show');
  85. div2.style.position = "fixed";
  86. div2.style.top = "0px";
  87. div2.style.right = "0px";
  88. div2.style.zIndex = "9999";
  89. div2.style.opacity = 0.90;
  90. div2.style.visibility ="hidden";
  91. div2.innerHTML = "<div id='img'><img onMouseout='loadone()' src='http://fs2.directupload.net/images/150909/7tae9l8k.png'></div>";
  92. body.appendChild(div2);
  93. }
  94. unsafeWindow.loadone = function() {
  95. document.getElementById("show").style.visibility='hidden';
  96. document.getElementById("first").style.visibility='visible';
  97. document.getElementById("hide").style.visibility='visible';
  98. console.debug(GM_info.script.name+" toolbar is visible!");
  99. };
  100. // ==============
  101.  
  102. // ==STOP FUNCTION==
  103. unsafeWindow.load = function() {
  104. document.getElementsByTagName("title")[0].firstChild.data = GM_info.script.name+" is off!";
  105. location.href=jslink+":document.body.contentEditable='false'; document.designMode='off'; void 0";
  106. document.getElementById('button').innerHTML = stopped;
  107. window.setTimeout(function() { document.getElementById("first").style.visibility='hidden'; }, 10000);
  108. window.setTimeout(function() { document.getElementById("hide").style.visibility='hidden'; }, 10000);
  109. window.setTimeout(function() { document.getElementById("show").style.visibility='hidden'; }, 10000);
  110. console.info(GM_info.script.name+" is off!");
  111. };
  112. // ==============