您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Press CTRL + SHIFT E to enable editing mode. This will allow you to edit any text of a website. Press CTRL + SHIFT + E again to turn it off.
当前为
// ==UserScript== // @name Content Editor // @namespace http://tampermonkey.net/ // @version 3.0 // @description Press CTRL + SHIFT E to enable editing mode. This will allow you to edit any text of a website. Press CTRL + SHIFT + E again to turn it off. // @author Discord: Aadoxide // @match *://*/* // @icon https://cdn.discordapp.com/attachments/820526642148671509/1143872044904239175/Pencil_1.png // @license MIT // @grant none // ==/UserScript== // i made this for my timepass just so you know. (function() { 'use strict'; var notification = true; // optional let contentEditingEnabled = false; if (notification) { document.addEventListener('keydown', function(event) { if (event.ctrlKey && event.shiftKey && event.key === 'E') { // you can change the keybind if you want 👍 contentEditingEnabled = !contentEditingEnabled; document.body.contentEditable = contentEditingEnabled; showNotification(`Editing Mode ${contentEditingEnabled ? 'Enabled' : 'Disabled'}`); } }); } function showNotification(message) { const notificationElement = document.createElement('div'); notificationElement.textContent = message; notificationElement.style.position = 'fixed'; notificationElement.style.top = '10px'; notificationElement.style.right = '10px'; notificationElement.style.backgroundColor = 'rgba(0, 0, 0, 0.8)'; notificationElement.style.color = 'white'; notificationElement.style.padding = '10px'; notificationElement.style.borderRadius = '5px'; notificationElement.style.zIndex = '9999'; document.body.appendChild(notificationElement); setTimeout(() => { document.body.removeChild(notificationElement); }, 3000); // duration of the notification } })();