Last active
May 2, 2023 12:54
-
-
Save qguv/0b1def9db429a4caf6a97fd7b48b52b2 to your computer and use it in GitHub Desktop.
uBlock Origin static filters
This file contains hidden or 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
! to keep your filters updated, import this list as: | |
! https://gist.githubusercontent.com/qguv/0b1def9db429a4caf6a97fd7b48b52b2/raw/static-filters.txt | |
! 2021-01-18 https://stackoverflow.com | |
! accessibility: remove dark rabbit-hole distraction links | |
! to update: | |
! 1. visit https://stackexchange.com/sites?view=list | |
! 2. open devtools (F12) | |
! 3. choose the console tab | |
! 4. paste the following (without the ! at the beginning) | |
! | |
! const filters=['#sidebar', '.js-freemium-cta'];console.log(Array.from(new Set(Array.from(document.querySelectorAll('.lv-info > h2 > a')).map(a => a.href.split('/')[2]).map(url => url.split('.')).map(parts => parts.slice(parts.length - 2).join('.')).map(host => filters.map(filter => `${host}##${filter}`).join('\n')))).join('\n')); | |
! | |
! 5. paste the result below, replacing everything until the blank line | |
stackoverflow.com###sidebar | |
stackoverflow.com##.js-freemium-cta | |
serverfault.com###sidebar | |
serverfault.com##.js-freemium-cta | |
superuser.com###sidebar | |
superuser.com##.js-freemium-cta | |
stackexchange.com###sidebar | |
stackexchange.com##.js-freemium-cta | |
askubuntu.com###sidebar | |
askubuntu.com##.js-freemium-cta | |
stackapps.com###sidebar | |
stackapps.com##.js-freemium-cta | |
mathoverflow.net###sidebar | |
mathoverflow.net##.js-freemium-cta | |
! 2021-11-16 https://www.youtube.com | |
# accessibility: remove dark rabbit-hole distraction links | |
www.youtube.com###related | |
! 2021-03-05 https://app.slack.com | |
app.slack.com##.p-autoclog__hook | |
! 2021-03-08 design | |
//senseis.xmp.net/images/background.gif | |
! 2023-04-13 https://web.telegram.org | |
web.telegram.org##.message-content video | |
! 2023-04-18 https://stackoverflow.com | |
stackoverflow.com##.js-freemium-cta | |
! 2023-04-27 https://partyflock.nl | |
partyflock.nl###verlay | |
! 2023-04-29 https://github.com/sebastius | |
! disturbing pfp | |
||avatars.githubusercontent.com/u/14947839$image | |
! 2023-04-30 musescore: sneaky ads | |
! menu: popup ad | |
musescore.com##div:has(> a[href="https://musescore.com/courses"]) | |
! menu: premium ads | |
musescore.com##a[href="https://musescore.com/upgrade?feature=start-free-trial-new"] | |
musescore.com##a[href="https://musescore.com/pro/landing/courses-checkout?feature=catalog_start_free_trial&learn=1"] | |
! banner: countdown ads | |
musescore.com##div:has(> div:has(> a[href^="/pro/landing"][href$="?feature=welcome-banner"])) | |
musescore.com##div:has(> div:has(> a[href^="/pro/landing"][href$="?feature=banner"])) | |
! sidebar: slot for 3rd party ad | |
musescore.com##aside > div:nth-child(3) | |
! sidebar: courses ad | |
musescore.com##aside div:has(> a[href="/courses"]) | |
! after score: premium ad | |
musescore.com##section:has(> section:has(> a[href="https://musescore.com/pro/landing/spring?feature=score_landing&funnelState=method"])) | |
! ad after premium users | |
musescore.com##a[href="https://musescore.com/upgrade?feature=badge"] | |
! 2023-04-30 musescore: hide premium-only features | |
! menu: premium-only button (lessons for signed-in users) | |
musescore.com##a[href="https://musescore.com/courses"] | |
! sidebar: sign-up cta (rating cta for signed-in users) | |
musescore.com##aside > div:nth-child(2) | |
! after score: sign-up cta (rating cta for signed-in users) | |
musescore.com###jmuse-scroller-component > div:nth-child(3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment