您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
去除侧边栏,优化title
当前为
// ==UserScript== // @name 先知阅读模式 // @namespace http://tampermonkey.net/ // @version 2024-09-11 // @description 去除侧边栏,优化title // @author Mrxn // @homepage https://mrxn.net/ // @match https://xz.aliyun.com/t/* // @icon https://www.google.com/s2/favicons?sz=64&domain=aliyun.com // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... function modify_xz(){ document.getElementsByClassName("span3 pull-right offset sidebar")[0].remove(); document.title = document.title.replace(" - 先知社区",""); document.querySelector("#Wrapper > div > div > div.row.box.content").setAttribute("width","1200px !important"); document.getElementsByClassName("row box content")[0].style.width="1200px"; } document.addEventListener("scroll", function() { if(document.getElementsByClassName("span3 pull-right offset sidebar")[0]){ modify_xz(); } } );})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址