Last active
December 5, 2022 03:03
-
-
Save Hunlongyu/0a0475a7a838f096c21e8d1a867fa931 to your computer and use it in GitHub Desktop.
『净网卫士』 腾讯天气
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 『净网卫士』 腾讯天气 | |
// @author Hunlongyu | |
// @namespace https://github.com/Hunlongyu | |
// @icon https://i.loli.net/2019/04/22/5cbd720718fdb.png | |
// @description 页面精简,去除广告,只保留主要功能的部分。 | |
// @version 0.0.1 | |
// @match https://tianqi.qq.com/ | |
// @grant GM_addStyle | |
// @grant GM_log | |
// @run-at document-start | |
// @supportURL https://gist.github.com/Hunlongyu/0a0475a7a838f096c21e8d1a867fa931 | |
// ==/UserScript== | |
(function () { | |
'use strict' | |
let css = ` | |
#ct-pop-mobile{display:none !important;} | |
#ct-footer{display:none !important;} | |
` | |
try { | |
GM_addStyle(css) | |
} catch (e) { | |
GM_log(new Error('GM_addStyle stopped working!')) | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment