CSDN、简书去广告,和让你可以自由的编辑网站上的文字!!!
// ==UserScript==
// @name 🔥持续更新🔥 网页可编辑化,让你可以修改网页上的文字!
// @namespace 醉_Code
// @version 0.6
// @description CSDN、简书去广告,和让你可以自由的编辑网站上的文字!!!
// @author 醉_Code
// @match *
// @include *
// @icon https://www.google.com/s2/favicons?sz=64&domain=csdn.net
// @require http://code.jquery.com/jquery-1.11.0.min.js
// @grant unsafeWindow
// @license MIT
// ==/UserScript==
(function() {
'use strict';
var h1 = document.getElementsByTagName("h1");
//h1[0].innerHTML = h1[0].innerHTML+"<style type=\"text/css\">.btn-block{position : fixed;right : 10px;Writing-mode : vertical-rl;}</style>";
var button = document.createElement("button");
button.id = "Write_Text";
button.textContent = "开启或关闭自由编辑网页功能";
button.style.width = "210px";
button.style.height = "25px";
button.style.align = "center";
button.style.fontSize = "15px";
//alert("1");
//button.style.zindex = 9999;
//button.class = "btn btn-block"
h1[0].appendChild(button);
//alert("1");
console.log('start');
button.onclick = function() {
// 设置在此处单击#button时要发生的事件
//code
if(document.body.contentEditable=="true"){
document.body.contentEditable="inherit";
alert("已成功关闭编辑功能");
} else{
document.body.contentEditable="true";
alert("已成功开启编辑功能");
}
};
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址