Skip to content

Instantly share code, notes, and snippets.

@fmoliveira
Forked from supershadoe/MY-UBLOCK-FILTERS.md
Created April 13, 2024 14:20
Show Gist options
  • Save fmoliveira/8eae072655efb5eaad0b9cb30597baa4 to your computer and use it in GitHub Desktop.
Save fmoliveira/8eae072655efb5eaad0b9cb30597baa4 to your computer and use it in GitHub Desktop.
Some uBlock₀ filters
! Title: supershadoe's filters for Discord
! Expires: 3 days
! Description: To remove the some distracting elements from Discord UI
! Gift Nitro button
discord.com##.buttons-uaqb-5 > .grow-2T4nbg.colorBrand-2M3O3N.lookBlank-FgPMy6.button-ejjZWC
! GIF button
discord.com##div.buttonContainer-2lnNiN.expression-picker-chat-input-button:nth-of-type(1)
! Stickers button
discord.com##div.buttonContainer-2lnNiN.expression-picker-chat-input-button:nth-of-type(2)
! Help button (on top right corner)
discord.com##.toolbar-3_r2xA > .anchorUnderlineOnHover-wiZFZ_.anchor-1X4H4q
! Nitro button on @me page
discord.com##li.container-32HW5s.channel-1Shao0:nth-of-type(2)
! Fixed Nitro button at bottom of server list (SMH discord)
discord.com##.fixedBottomList-1yrBla
! Think this is the rule for blocking Nitro ad in the new account switcher (didn't comment it when adding that rule so I forgot)
discord.com##.colorDefault-CDqZdO.colorBrand-3cPPsm.labelContainer-2vJzYL.item-1OdjEX
! Download discord button (may have side effects idk)
discord.com##div.listItem-3SmSlK:nth-of-type(7) > .listItemWrapper-3d87LP

Many of these filters are usually cosmetic instead of for blocking/skipping ads or something (Although some are used for that purpose like yt-filter)

To import a filter into Some uB₀, type the link https://gist.github.com/supershadoe/aed9db4c220b9150d2361a369f7be2f2/raw/{the filter to import, e.g., spotify; without the braces obviously}-ublock-filter.txt into uB₀ settings -> Filter lists -> Custom -> Import

Links to copy for filters (this may not be up to date)

Website Link
Spotify Spotify
Outlook Outlook
YouTube YouTube
Discord Discord
! Title: supershadoe's filters for Outlook
! Expires: 3 days
! Description: To remove the annoying ad in sidebar and office365 promo
! Remove "Upgrade to Office 365" button over the folders list
outlook.live.com##.O3mR7
! Remove the sidebar which shows ads on right side
outlook.live.com##.LBktY > .GssDD
! Title: supershadoe's filters for Spotify
! Expires: 3 days
! Description: To remove the annoying spotify upgrade/install app button
! Remove "Install app" button from top
open.spotify.com##.encore-over-media-set.eDaZIM.ButtonInner-sc-14ud5tc-0
! Remove "Explore premium" button from top
open.spotify.com##.Upqw01TOXETOmR5Td7Dj.encore-inverted-light-set.jfhNps.ButtonInner-sc-14ud5tc-0
! Title: supershadoe's filters for YouTube
! Expires: 3 days
! Description: Just adding some filters from EasyList to remove pre-roll and mid-roll
! Original source: https://github.com/easylist/easylist/wiki/Youtube-Issues !
||music.youtube.com^$csp=worker-src 'none'
||www.youtube.com^$csp=worker-src 'none'
youtube.com##+js(json-prune, 2.playerResponse.adPlacements playerResponse.adPlacements playerResponse.playerAds adPlacements playerAds)
youtube.com##+js(json-prune, 2.playerResponse.adPlacements)
youtube.com##+js(json-prune, playerResponse.adPlacements)
youtube.com##+js(json-prune, playerResponse.playerAds)
youtube.com##+js(set, ytInitialPlayerResponse.adPlacements, null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment