Remover

With this Script you can edit every Website.

当前为 2024-05-01 提交的版本,查看 最新版本

// ==UserScript==
// @name Remover
// @description With this Script you can edit every Website.
// @description:de Mit diesem Skript können sie jede beliebige Website bearbeiten.
// @version 5.1.6.1
// @icon https://translate.google.com/favicon.ico
// @author JAS1998
// @copyright 2023+ , JAS1998
// @namespace https://greasyfork.org/users/4792
// @license CC BY-NC-ND 4.0; http://creativecommons.org/licenses/by-nc-nd/4.0/
// @compatible Chrome tested with Tampermonkey
// @contributionURL https://www.paypal.com/donate?hosted_button_id=9JEGCDFJJHWU8
// @run-at document-end
// @match *://*/*
// @grant unsafeWindow
// ==/UserScript==

/* jshint esversion: 9 */

function createToolbar(id, visibility, innerHTML) {
    var div = document.createElement("div");
    div.setAttribute('id', id);
    div.style.position = "fixed";
    div.style.top = "0px";
    div.style.right = "0px";
    div.style.zIndex = "9999";
    div.style.opacity = 0.90;
    div.style.visibility = visibility;
    div.innerHTML = innerHTML;
    body.appendChild(div);
}

function showToolbar() {
    document.getElementById("show").style.visibility = "hidden";
    document.getElementById("first").style.visibility = "visible";
    document.getElementById("hide").style.visibility = "visible";
    console.info(GM_info.script.name + " toolbar is visible!");
}

function turnOff() {
    location.href = jslink + ":document.body.contentEditable='false'; document.designMode='off'; void 0";
    document.getElementsByTagName("title")[0].firstChild.data = GM_info.script.name + " is off!";
    console.info(GM_info.script.name + " is off!");
    document.getElementById('button').innerHTML = "<span>" + GM_info.script.name + " is off!</span>";
    document.getElementById('first').style.left = null;
    document.getElementById('first').style.right = "0px";
}

var body = document.body;
if (body !== null) {
    createToolbar('first', 'visible', start);
    createToolbar('hide', 'hidden', "<img onMouseout='showload()' src='http://fs2.directupload.net/images/150909/sxcclyoz.png'>");
    createToolbar('show', 'hidden', "<img onMouseout='showload()' src='http://fs2.directupload.net/images/150909/7tae9l8k.png'>");
}

unsafeWindow.showload = showToolbar;
unsafeWindow.off = turnOff;