您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
为微信阅读pc版添加自动滚动和翻页功能
当前为
// ==UserScript== // @name test // @namespace http://tampermonkey.net/ // @version 0.3.3 // @description 为微信阅读pc版添加自动滚动和翻页功能 // @author DearCyan // @runat document-end // @grant none // @match https://www.bilibili.com/* // @match https://tieba.baidu.com/* // @match https://www.taobao.com/* // @match https://www.zhihu.com/* // @match https://mihoyo.com/* // @match https://bbs.mihoyo.com/* // @match https://www.miyoushe.com/* // @icon https://cdn-icons-png.flaticon.com/512/747/747062.png // @grant none // @license GPL // ==/UserScript== console.log('anti_gray') function anti_gray() { const url = window.location.href // bilibili if (/bilibili.com/.test(url)) { addStyle() removeClass('gray') } //tieba if (/tieba.baidu.com/.test(url)) { addStyle() removeClass('tb-allpage-filter') } } //method function removeClass(className) { console.debug('remove class: ' + className) let htmlClass = document.documentElement.classList const arr = Array.from(htmlClass) const res = arr.filter(item => item !== className) htmlClass = res } function addStyle() { console.debug('reset filter') const html = document.documentElement const body = document.body html.style.filter = 'none' body.style.filter = 'none' } window.onload = anti_gray anti_gray()