Single-file uBlock Origin filter list that removes distracting elements from Gitee.
.gitattributes rule.txt → linguist-language=AdBlock (GitHub syntax highlight)
README.md usage instructions
rule.txt the actual filter list — edit this to add/remove rules
rule.txt is the only deliverable. Everything else is documentation.
Open uBO Dashboard → "My filters" → paste rule.txt content → Apply changes.
- Dual-cover nav: Gitee has two nav systems (new Next.js + old Semantic UI). Most nav items need two rules: one
li:has(...)for new, one.header-menu > aora#idfor old. - Backslash escaping: uBO needs
\:for Tailwind responsive prefixes (e.g.xl\:hidden), and\[...\]for attribute-like classes (e.g.leading-\[26px\]). :has()support: Used for new nav (li:has(a[href="..."])), only available in Chromium 105+ / Firefox 121+.
- Gitee frequently changes CSS class names (Tailwind + CSS modules).
- When a rule breaks, open uBO Picker, re-select the element, and replace the broken selector.
- If Gitee adds a new nav item, follow the dual-cover pattern.
- Version in
rule.txtheader followsYYYYMMDDformat.
| File | Purpose |
|---|---|
rule.txt |
AdBlock Plus 2.0 filter list (22 rules) |
.gitattributes |
Linguist override so GitHub highlights rule.txt as AdBlock |