Skip to content

Instantly share code, notes, and snippets.

@balupton
Last active July 17, 2023 15:34
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save balupton/6960605 to your computer and use it in GitHub Desktop.
Save balupton/6960605 to your computer and use it in GitHub Desktop.
Adblock Filters
! Title: Activism Filter
! Description: Reclaim your agency, block activism banners
! Version: 1.1.1
! TimeUpdated: 2020-09-24T04:44:18Z
! Expires: 1 hour (update frequency)
! Homepage: https://github.com/balupton/filters
! License: https://unlicense.org
!#include https://raw.githubusercontent.com/balupton/filters/master/filter-activism.txt
! Title: AdGuard Agency Filter
! Description: Disables DNS for websites, services, and companies whose business is attention
! Version: 1.1.1
! TimeUpdated: 2020-09-24T04:44:18Z
! Expires: 1 hour (update frequency)
! Homepage: https://github.com/balupton/filters
! License: http://creativecommons.org/licenses/by-sa/3.0/
!#include https://raw.githubusercontent.com/balupton/filters/master/filter-agency.txt
[Adblock Plus 2.0]
facebook.com##div#stream_pagelet
facebook.com##div#pagelet_trending_tags_and_topics
facebook.com##span.uiSideNavCount
facebook.com##div.home_right_column
facebook.com##div#pagelet_sidebar
[Adblock Plus 2.0]
feedly.com##div#feedlyProBar
feedly.com##div.profeature
feedly.com##div#tipsModule_part
feedly.com##div.proShowcase
feedly.com##div#fixedProfile > div.button.primary.small
feedly.com#?#div.entry:-abp-has(> div.CondensedToolbar > div.button-dropdown)
[Adblock Plus 2.0]
github.com##a.notification-indicator
[Adblock Plus 2.0]
google.com,google.com.au##div.gb_2a
google.com,google.com.au##div#gbwa
google.com,google.com.au##div.pmoabs
google.com,google.com.au##div.gb_qa
google.com,google.com.au##div.gb_mb
! Title: Vanity Filter
! Description: Disables vanity and addictive elements on Instagram, Twitter, YouTube, Medium
! Version: 1.3.1
! TimeUpdated: 2020-09-24T04:44:18Z
! Expires: 1 hour (update frequency)
! Homepage: https://github.com/balupton/filters
! License: https://unlicense.org
!#include https://raw.githubusercontent.com/balupton/filters/master/filter-vanity.txt
[Adblock Plus 2.0]
twitter.com##div.module.Footer
twitter.com##div.module.enhanced-media-thumbnails
twitter.com##div.trends
twitter.com##div.wrapper-discover
twitter.com##div.wrapper-home
twitter.com##div.wtf-module
twitter.com##li#global-nav-home
twitter.com##li.topics
! Title: Vanity Filter
! Description: Disables vanity and addictive elements on Instagram, Twitter, YouTube, Medium
! Version: 1.5.1
! TimeUpdated: 2020-09-24T04:44:18Z
! Expires: 1 hour (update frequency)
! Homepage: https://github.com/balupton/filters
! License: https://unlicense.org
!#include https://raw.githubusercontent.com/balupton/filters/master/filter-vanity.txt
@pavelfomin
Copy link

Here is one removing the Sponsored entries from feedly:
feedly.com#?#div.entry:-abp-has(> div.CondensedToolbar > div.button-dropdown)

@balupton
Copy link
Author

balupton commented Jun 6, 2020

@pavelfomin thanks added

@RalphRacer
Copy link

Thanks a lot for filter-activism filter.
Could you please add eji.com to the querySelectorAll selectors.
Then this rule would also work on recent banners on reactjs.org and eslint.org.
Like:

#%#document.addEventListener('DOMContentLoaded', () => { for ( let el of document.querySelectorAll('[href*="eji"],[href*="black-lives-matter"],[href*="blacklivesmatter"],[href*="blm"],[href*="covid"],[href*="corona"]') ) while ( true ) { el.hidden = true; el = el.parentNode; if ( el.childElementCount !== 1 ) break } })

@balupton
Copy link
Author

@RalphRacer Going to move this into a github repository instead to allow pull requests.

@balupton
Copy link
Author

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