Created
April 7, 2024 07:54
-
-
Save iwengx/fd59a14b7ce4f260c2276515497b39ed to your computer and use it in GitHub Desktop.
【油猴脚本】去除V2EX页面中的多余广告和元素。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name v2ex 广告净化 | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-07 | |
// @description 去除站内广告内容 | |
// @author iWengX | |
// @match *://v2ex.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=v2ex.com | |
// @grant GM_addStyle | |
// ==/UserScript== | |
(function() { | |
/** 清除样式 */ | |
const purge_css = ` | |
div[style="border-bottom: 1px solid var(--box-border-color);"], | |
.wwads-cn | |
{ | |
display: none !important; | |
} | |
` | |
/** 设置清除样式 */ | |
GM_addStyle(purge_css); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment