Remover

With this Script you can edit every Website.

当前为 2020-11-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @version 5.1.5.4
  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 wack.3gp
  7. // @copyright 2019+ , wack.3gp (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. // @resource meta https://greasyfork.org/scripts/4612/code/meta.js
  17. // @grant unsafeWindow
  18. // @grant GM_notification
  19. // @grant GM_getResourceText
  20. // @include *
  21. // ==/UserScript==
  22.  
  23. /* jshint esversion: 9 */
  24.  
  25. // ==VAR==
  26. var jslink = "javascript";
  27. var start = "<div id='button'><a href='javascript:on()'>Start</a></div>";
  28. var work = "<a onMouseout='off()'>" + GM_info.script.name + " v" + GM_info.script.version + " is on!</a><span> <--- Mouseover to Stop.</span>";
  29. // ==============
  30.  
  31. // ==START FUNCTION==
  32. var body = document.body;
  33. if (body !== null) {
  34. var div1 = document.createElement("div");
  35. div1.setAttribute('id', 'first');
  36. div1.style.position = "fixed";
  37. div1.style.top = "0px";
  38. div1.style.right = "0px";
  39. div1.style.zIndex = "9999";
  40. div1.style.backgroundColor = "red";
  41. div1.style.opacity = 0.90;
  42. div1.style.border = "1px solid #ffffcc";
  43. div1.style.padding = "3px";
  44. div1.innerHTML = start;
  45. body.appendChild(div1);
  46. }
  47. unsafeWindow.on = function () {
  48. if (GM_getResourceText("meta").indexOf(GM_info.script.version) > -1) { //nothing
  49. }
  50. else {
  51. console.warn("Please download " + GM_getResourceText("meta").replace(/.*(?=v.*\d\D\d\D\d\D\d)/gims, '').split('/')[0] + GM_info.script.supportURL.replace("feedback", "code.user.js"));
  52. GM_notification({
  53. title: "Update",
  54. text: "Please download " + GM_getResourceText("meta").replace(/.*(?=v.*\d\D\d\D\d\D\d)/gims, '').split('/')[0],
  55. onclick: function () {
  56. location.href = GM_info.script.supportURL.replace("feedback", "code.user.js");
  57. },
  58. });
  59. }
  60. location.href = jslink + ":document.body.contentEditable='true'; document.designMode='on'; void 0";
  61. document.getElementById("hide").style.visibility = "visible";
  62. document.getElementById("first").style.left = "0px";
  63. document.getElementById('button').innerHTML = work;
  64. document.title = "► " + GM_info.script.name + " v" + GM_info.script.version + " is on!";
  65. var link = document.createElement('link');
  66. link.type = 'image/x-icon';
  67. link.rel = 'shortcut icon';
  68. link.href = GM_info.script.icon;
  69. document.getElementsByTagName('head')[0].appendChild(link);
  70. console.info(GM_info.script.name + " v" + GM_info.script.version + " is on!\nCopyright: " + GM_info.script.copyright);
  71. };
  72. // ==============
  73.  
  74. // ==HIDE BUTTON==
  75. if (body !== null) {
  76. var div2 = document.createElement("div");
  77. div2.setAttribute('id', 'hide');
  78. div2.style.position = "fixed";
  79. div2.style.top = "40px";
  80. div2.style.right = "0px";
  81. div2.style.zIndex = "9999";
  82. div2.style.opacity = 0.90;
  83. div2.style.visibility = "hidden";
  84. div2.innerHTML = "<img onMouseout='hideload()' src='http://fs2.directupload.net/images/150909/sxcclyoz.png'>";
  85. body.appendChild(div2);
  86. }
  87. unsafeWindow.hideload = function () {
  88. document.getElementById("hide").style.visibility = "hidden";
  89. document.getElementById("first").style.visibility = "hidden";
  90. document.getElementById("show").style.visibility = "visible";
  91. console.info(GM_info.script.name + " toolbar is hidden!");
  92. };
  93. // ==============
  94.  
  95. // ==SHOW BUTTON==
  96. if (body !== null) {
  97. var div3 = document.createElement("div");
  98. div3.setAttribute('id', 'show');
  99. div3.style.position = "fixed";
  100. div3.style.top = "0px";
  101. div3.style.right = "0px";
  102. div3.style.zIndex = "9999";
  103. div3.style.opacity = 0.90;
  104. div3.style.visibility = "hidden";
  105. div3.innerHTML = "<img onMouseout='showload()' src='http://fs2.directupload.net/images/150909/7tae9l8k.png'>";
  106. body.appendChild(div3);
  107. }
  108. unsafeWindow.showload = function () {
  109. document.getElementById("show").style.visibility = "hidden";
  110. document.getElementById("first").style.visibility = "visible";
  111. document.getElementById("hide").style.visibility = "visible";
  112. console.info(GM_info.script.name + " toolbar is visible!");
  113. };
  114. // ==============
  115.  
  116. // ==STOP FUNCTION==
  117. unsafeWindow.off = function () {
  118. location.href = jslink + ":document.body.contentEditable='false'; document.designMode='off'; void 0";
  119. document.getElementsByTagName("title")[0].firstChild.data = GM_info.script.name + " is off!";
  120. console.info(GM_info.script.name + " is off!");
  121. document.getElementById('button').innerHTML = "<span>" + GM_info.script.name + " is off!</span>";
  122. document.getElementById('first').style.left = null;
  123. document.getElementById('first').style.right = "0px";
  124. };
  125. // ==============