您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
清除广告 评论 推荐等,只保留文章和作者.
当前为
// ==UserScript== // @name 简书去广告+一键净化脚本 // @namespace http://tampermonkey.net/ // @version 1.0.1 // @description 清除广告 评论 推荐等,只保留文章和作者. // @author 艾尔蓝德 // @match www.jianshu.com/* // @grant GM_registerMenuCommand // ==/UserScript== /* jshint esversion: 6 */ (function() { 'use strict'; const style=document.createElement("style"); style.setAttribute("type", "text/css") style.innerHTML=` section[aria-label],div[aria-label] { display:none } ` document.head.appendChild(style) const jian_clear = function(){ const removeList = [ 'header', // 右侧栏 'div[role*=main] aside', // 底部广告 'div[role*=main] ._gp-ck>section:first-of-type~*', // 二维码 关注之类的 'div[role*=main] article~*', // 左侧栏和抽奖 '#__next>footer~div', // 评论 '#__next>footer' ] for(const item of removeList){ for(const _node of document.querySelectorAll(item)){ _node.remove() } } } GM_registerMenuCommand('一键净化', jian_clear) })();