Remover

With this Script you can edit every Website.

当前为 2022-06-20 提交的版本,查看 最新版本

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

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址