Skip to content

Instantly share code, notes, and snippets.

@Hunlongyu
Last active December 5, 2022 03:03
Show Gist options
  • Save Hunlongyu/0a0475a7a838f096c21e8d1a867fa931 to your computer and use it in GitHub Desktop.
Save Hunlongyu/0a0475a7a838f096c21e8d1a867fa931 to your computer and use it in GitHub Desktop.
『净网卫士』 腾讯天气
// ==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