Skip to content

Instantly share code, notes, and snippets.

@youthlin
Last active September 14, 2022 11:52
Embed
What would you like to do?
Inject-Css

给网站自定义 css

首先需要安装用户脚本管理器 TampermonkeyViolentmonkey(暴力猴)

然后点击链接即可安装脚本:
https://github.com/youthlin/examples/raw/master/html/demo/tampermonkey/inject-css.user.js

预览脚本:
https://github.com/youthlin/examples/blob/master/html/demo/tampermonkey/inject-css.user.js

安装成功后,打开任意页面,点击脚本管理器插件图标,在菜单中选择 Inject Css 的 Settings|设置 按钮即可配置自定义样式。 image

@youthlin
Copy link
Author

youthlin commented Jan 5, 2021

image

@youthlin
Copy link
Author

document.querySelectorAll('div:not([class])>div:not([class])>div:not([class]):empty')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment