您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
CSDN、简书去广告,和让你可以自由的编辑网站上的文字!!!
当前为
// ==UserScript== // @name 🔥持续更新🔥 【原创】CSDN、简书去广告,网页美化、可编辑化,让你可以修改网页上的文字! // @namespace 醉_Code // @version 0.5 // @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 url = window.location.host; var x; if(url=="blog.csdn.net"){ x = ["blog_container_aside","csdn-side-toolbar ","left-toolbox"]; } else if(url == "www.jianshu.com"){ if("www.jianshu.com/" == url+window.location.pathname){ x = ["col-xs-7 col-xs-offset-1 aside","commonclass","_3Qa4dn5YlokOkxn6RsnEsL_0"]; } else{ x = ["-umr26","_2OwGUo","app","_1F7CTF"] } } for(var i = 0, len = x.length; i < len; i++) { document.getElementsByClassName(x[i])[0].remove(); } 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或关注我们的公众号极客氢云获取最新地址