Skip to content

Instantly share code, notes, and snippets.

@youthlin
Last active November 6, 2023 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youthlin/c4c08ffe4273ca7ebbf759289cef9964 to your computer and use it in GitHub Desktop.
Save youthlin/c4c08ffe4273ca7ebbf759289cef9964 to your computer and use it in GitHub Desktop.
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')

@youthlin
Copy link
Author

youthlin commented Nov 6, 2023

overflow:hidden
opacity:0;
visibility:hidden
display:none
position:absolute
clip(clip-path):rect()/inset()/polygon()
z-index:-1000
transform:scaleY(0)

作者:Damonare
链接:https://juejin.cn/post/6844903456545701901
来源:稀土掘金
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

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