Skip to content

Instantly share code, notes, and snippets.

@cspence001
Last active September 5, 2024 20:47
Show Gist options
  • Save cspence001/a7e50832ba9c682e4b7f53738383b8b9 to your computer and use it in GitHub Desktop.
Save cspence001/a7e50832ba9c682e4b7f53738383b8b9 to your computer and use it in GitHub Desktop.
Brave Shields selected Filter Lists, Custom Filters

Brave Shields Filters and Adblock Lists

Brave Default Lists and Directory Catalog of Opt-in Filter Lists

  1. Default Lists

  2. Default and Opt-in Catalog

  3. Brave Adblock Lists

Opt-in Filter Lists (Enabled in Shields > Content Filters > Filter lists)

Enablement of the numbered options includes the lists below it.

  1. EasyList Cookie

  2. Fanboy's Annoyances + uBO Annoyances

  3. Brave Experimental Adblock Rules

    • Experimental Adblock Rules
    • This list blocks twitch video ads using twitch.tv##+js(vaft-ublock-origin) scriptlet. If enabled, remove twitch.tv##+js(twitch-videoad) from custom filters.
  4. Brave AdGuard URL Tracking Protection Filters

  5. Brave Bypass Paywalls Clean

Custom Filters

Custom filters can be created in Brave by navigating to brave://settings/shields/filters and selecting "Create custom filters":

// GitHub Filters
! 2023-02-10 github.com
@@||collector.github.com/github/collect$other,first-party

// DuckDuckGo Filters
! 2023-02-11 duckduckgo.com
@@||improving.duckduckgo.com/t/*$other,first-party
@@||improving.duckduckgo.com/t/trmx$other,first-party

// Twitch Ads
twitch.tv##+js(twitch-videoad)

// Delayed Loading
||cdn.ampproject.org/v0.js$script,redirect=ampproject_v0.js

// Gmail Tracking
*/cleardot.gif$image,redirect=1x1.gif
*/cleardot.gif$xmlhttprequest,redirect=1x1.gif

// External Images
||googleusercontent.com/proxy$domain=mail.google.com

// Disable PWA Button in Firefox Mobile
!#if env_mobile
*$csp=manifest-src 'none'
!#endif

// YouTube Filters
/annotations_module.js$script,important,domain=youtube.com
/endscreen.js$script,important,domain=youtube.com
youtube.com##.ytp-time-seeking
youtube.com##ytd-channel-video-player-renderer:remove()
dQw4w9WgXcQ$document,xhr,domain=youtube.com
youtube.com##+js(set, ytInitialPlayerResponse.auxiliaryUi.messageRenderers.upsellDialogRenderer.isVisible, false)
youtube.com##+js(set, ytInitialData.overlay.upsellDialogRenderer.isVisible, false)
youtube.com##+js(json-prune, [].playerResponse.auxiliaryUi.messageRenderers.upsellDialogRenderer auxiliaryUi.messageRenderers.upsellDialogRenderer)
youtube.com##+js(set, ytInitialData.topbar.desktopTopbarRenderer.interstitial.consentBumpRenderer.forceConsent, false)
youtube.com##+js(json-prune, [].response.topbar.desktopTopbarRenderer.interstitial.consentBumpRenderer topbar.desktopTopbarRenderer.interstitial.consentBumpRenderer)
youtube.com##+js(set, ytInitialData.topbar.desktopTopbarRenderer.interstitial.consentBumpV2Renderer, undefined)
youtube.com##+js(json-prune, [].response.overlay.consentBumpV2Renderer topbar.desktopTopbarRenderer.interstitial.consentBumpV2Renderer overlay.consentBumpV2Renderer response.overlay.consentBumpV2Renderer)
youtube.com##+js(set, ytInitialData.onResponseReceivedEndpoints, undefined)
youtube.com##+js(set, ytInitialData.desktopTopbar.desktopTopbarRenderer.interstitial.consentBumpV2Renderer, undefined)
www.youtube.com##.ytp-caption-segment,.ytp-subtitles-button

// Old Reddit
reddit.com##.redesign-beta-optin
reddit.com##.gilded-icon, .give-gold-button
reddit.com##.onboardingbar
!#if env_mobile
reddit.com##.EUCookieNotice
!#endif

// Wikipedia
wikipedia.org###p-lang ul > .interlanguage-link:not(.interwiki-en):not(.interwiki-pl)

// Mozilla Forums
forums.mozillazine.org##a:visited[href^="https://bugzilla.mozilla.org/show_bug.cgi"]:style(color: red !important;)
forums.mozillazine.org##+js(remove-attr, target, a[target="_blank"])

// Disqus
disqus.com###reactions

// uAssets
||report-uri.com^$all,important

// Localhost Benchmark
@@||localhost:8080/requests_top500$xhr

// Reddit Noise in Mod Log
reddit.com###siteTable.modactionlisting.sitetable .modactions.editflair:nth-ancestor(2)

// Reddit Telemetry
||redditstatic.com/shreddit/en-US/*telemetry*.js

// Code Testing Exploitation
||sentry.io^$3p,important
||bugsnag.com^$3p,important

// IDN Protection
||xn--$doc,frame

// Annoying Scrolling
morele.net##+js(set, scrollTo, noopFunc)

// Telepolis
|https://www.telepolis.pl/|$csp=img-src 'none'
||www.telepolis.pl/next/*$xhr,domain=www.telepolis.pl

Paywall Filter Lists

If not using the BPC extension, these URLs can be added to filter paywalls in Shields > Content Filters > Add custom filter lists:

  1. Bypass Paywalls Clean
  2. Paywall Remover List
  3. Anti-Paywall

Bypass Paywalls Chrome Clean Extension

Load this extension unpacked in Brave. An experimental opt-in list can be enabled in Brave Settings > Shields > Content Filters > Filter lists but does not block as effectively as the extension.

  1. Supported Websites and Installation Instructions

  2. Python Script for Updating the Extension

    • Update Script
      • Configure DOWNLOAD_DIR to match the installation location of the extension.
      • Create a shell alias for updates: e.g. alias bpcupdate="python3 ~/macsetup/_scripts/bpcupdate.py"
      • Run updates with $ bpcupdate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment