NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name 编辑一切 EditAll // @version 1.0.0 // @description 让你能够编辑网页上的大部分内容 // @author 白墨麒麟Hot // @include * // @license MIT // @icon https://pic.stackoverflow.wiki/uploadImages/114/220/138/250/2022/08/16/08/59/4de497a8-4c27-4e07-95bf-0b2bb8a451bb.ico // @grant none // ==/UserScript== (function() { 'use strict'; let codes = document.querySelectorAll("code"); codes.forEach(c => { c.contentEditable = "true"; }); let texts = document.querySelectorAll("p"); texts.forEach(t => { t.contentEditable = "true"; }); let cites = document.querySelectorAll("cite"); cites.forEach(i => { i.contentEditable = "true"; }); let h1s = document.querySelectorAll("h1"); h1s.forEach(h1 => { h1.contentEditable = "true"; }); let h2s = document.querySelectorAll("h2"); h2s.forEach(h2 => { h2.contentEditable = "true"; }); let h3s = document.querySelectorAll("h3"); h3s.forEach(h3 => { h3.contentEditable = "true"; }); let h4s = document.querySelectorAll("h4"); h4s.forEach(h4 => { h4.contentEditable = "true"; }); let h5s = document.querySelectorAll("h5"); h5s.forEach(h5 => { h5.contentEditable = "true"; }); let h6s = document.querySelectorAll("h6"); h6s.forEach(h6 => { h6.contentEditable = "true"; }); let tas = document.querySelectorAll("textarea"); tas.forEach(ta => { ta.contentEditable = "true"; }); let lis = document.querySelectorAll("li"); lis.forEach(li => { li.contentEditable = "true"; }); let divs = document.querySelectorAll("div"); divs.forEach(div => { div.contentEditable = "true"; }); let as = document.querySelectorAll("a"); as.forEach(a => { a.contentEditable = "false"; }); })();