From 0d8c5fdfc2ddb84a0d57311c0b091bc45862e892 Mon Sep 17 00:00:00 2001 From: yujinpan <1192878390@qq.com> Date: Mon, 30 Jan 2023 16:40:23 +0800 Subject: [PATCH] feat: add Google Ads remove scripts --- scripts/x-google-ads.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/x-google-ads.js diff --git a/scripts/x-google-ads.js b/scripts/x-google-ads.js new file mode 100644 index 0000000..8d98284 --- /dev/null +++ b/scripts/x-google-ads.js @@ -0,0 +1,16 @@ +// ==UserScript== +// @name 屏蔽谷歌广告(remove Google Ads) +// @namespace https://github.com/yujinpan/tampermonkey-extension +// @version 1.0 +// @license MIT +// @description 屏蔽烦人的谷歌广告(remove Google Ads)。 +// @author yujinpan +// @include http*://** +// @run-at document-start +// ==/UserScript== + +(() => { + const style = document.createElement('style'); + style.innerHTML = '* [data-adsbygoogle-status] {display: none !important}'; + document.head.append(style); +})(); \ No newline at end of file