Remover

With this Script you can edit every Website.

安装此脚本?
作者推荐脚本

您可能也喜欢Source Viewer

安装此脚本
  1. // ==UserScript==
  2. // @version 5.1.6.2
  3. // @name Remover
  4. // @description With this Script you can edit every Website.
  5. // @description:de Mit diesem Skript können sie jede beliebige Website bearbeiten.
  6. // @author JAS1998
  7. // @copyright 2019+ , JAS1998 (https://greasyfork.org/users/4792)
  8. // @namespace https://greasyfork.org/users/4792
  9. // @supportURL https://greasyfork.org/scripts/4612/feedback
  10. // @license CC BY-NC-ND 4.0; http://creativecommons.org/licenses/by-nc-nd/4.0/
  11. // @noframes
  12. // @priority 9999
  13. // @compatible Chrome tested with Tampermonkey
  14. // @contributionURL https://www.paypal.com/donate?hosted_button_id=9JEGCDFJJHWU8
  15. // @contributionAmount €1.00
  16. // @grant unsafeWindow
  17. // @grant GM_notification
  18. // @match *://*/*
  19. // ==/UserScript==
  20. /* jshint esversion: 9 */
  21. if (GM_info.script.copyright.includes(GM_info.script.namespace)) {
  22. // nothing
  23. }
  24. else {
  25. location.href = GM_info.script.supportURL.replace("feedback", "");
  26. alert("Please install the Orginal Version");
  27. }
  28. // ===============
  29. // ==VAR==
  30. var jslink = "javascript";
  31. var start = "<div id='button'><a href='javascript:on()'>Start</a></div>";
  32. var work = "<a onMouseout='off()'>" + GM_info.script.name + " v" + GM_info.script.version + " is on!</a><span> <--- Mouseover to Stop.</span>";
  33. // ==============
  34. // ==START FUNCTION==
  35. var body = document.body;
  36. if (body !== null) {
  37. var div1 = document.createElement("div");
  38. div1.setAttribute('id', 'first');
  39. div1.style.position = "fixed";
  40. div1.style.top = "0px";
  41. div1.style.right = "0px";
  42. div1.style.zIndex = "9999";
  43. div1.style.backgroundColor = "red";
  44. div1.style.opacity = 0.90;
  45. div1.style.border = "1px solid #ffffcc";
  46. div1.style.padding = "3px";
  47. div1.innerHTML = start;
  48. body.appendChild(div1);
  49. }
  50. unsafeWindow.on = function () {
  51. location.href = jslink + ":document.body.contentEditable='true'; document.designMode='on'; void 0";
  52. document.getElementById("hide").style.visibility = "visible";
  53. document.getElementById("first").style.left = "0px";
  54. document.getElementById('button').innerHTML = work;
  55. document.title = "► " + GM_info.script.name + " v" + GM_info.script.version + " is on!";
  56. var link = document.createElement('link');
  57. link.type = 'image/x-icon';
  58. link.rel = 'shortcut icon';
  59. link.href = GM_info.script.icon;
  60. document.getElementsByTagName('head')[0].appendChild(link);
  61. console.info(GM_info.script.name + " v" + GM_info.script.version + " is on!\nCopyright: " + GM_info.script.copyright);
  62. };
  63. // ==============
  64. // ==HIDE BUTTON==
  65. if (body !== null) {
  66. var div2 = document.createElement("div");
  67. div2.setAttribute('id', 'hide');
  68. div2.style.position = "fixed";
  69. div2.style.top = "40px";
  70. div2.style.right = "0px";
  71. div2.style.zIndex = "9999";
  72. div2.style.opacity = 0.90;
  73. div2.style.visibility = "hidden";
  74. div2.innerHTML = "<img onMouseout='hideload()' src='http://fs2.directupload.net/images/150909/sxcclyoz.png'>";
  75. body.appendChild(div2);
  76. }
  77. unsafeWindow.hideload = function () {
  78. document.getElementById("hide").style.visibility = "hidden";
  79. document.getElementById("first").style.visibility = "hidden";
  80. document.getElementById("show").style.visibility = "visible";
  81. console.info(GM_info.script.name + " toolbar is hidden!");
  82. };
  83. // ==============
  84. // ==SHOW BUTTON==
  85. if (body !== null) {
  86. var div3 = document.createElement("div");
  87. div3.setAttribute('id', 'show');
  88. div3.style.position = "fixed";
  89. div3.style.top = "0px";
  90. div3.style.right = "0px";
  91. div3.style.zIndex = "9999";
  92. div3.style.opacity = 0.90;
  93. div3.style.visibility = "hidden";
  94. div3.innerHTML = "<img onMouseout='showload()' src='http://fs2.directupload.net/images/150909/7tae9l8k.png'>";
  95. body.appendChild(div3);
  96. }
  97. unsafeWindow.showload = function () {
  98. document.getElementById("show").style.visibility = "hidden";
  99. document.getElementById("first").style.visibility = "visible";
  100. document.getElementById("hide").style.visibility = "visible";
  101. console.info(GM_info.script.name + " toolbar is visible!");
  102. };
  103. // ==============
  104. // ==STOP FUNCTION==
  105. unsafeWindow.off = function () {
  106. location.href = jslink + ":document.body.contentEditable='false'; document.designMode='off'; void 0";
  107. document.getElementsByTagName("title")[0].firstChild.data = GM_info.script.name + " is off!";
  108. console.info(GM_info.script.name + " is off!");
  109. document.getElementById('button').innerHTML = "<span>" + GM_info.script.name + " is off!</span>";
  110. document.getElementById('first').style.left = null;
  111. document.getElementById('first').style.right = "0px";
  112. };
  113. // ==============