quenhus/uBlock-Origin-dev-filter

Filters to block and remove copycat-websites from DuckDuckGo, Google and other search engines. Specific to dev websites like StackOverflow or GitHub.

Python

2,322

520 commits

updated Apr 24, 2025

See the code

README

uBlock-Origin-dev-filter

Filters to block and remove copycat-websites from DuckDuckGo, Google and other search engines. Used to be specific to dev websites like StackOverflow or GitHub, but it currently supports others like Wikipedia.

To use this tools, you should have uBlock Origin installed.

Import into uBlock Origin

Select the filters flavors you want, depending on your needs and search engine:

💻 dev supports StackOverflow + GitHub + NPM (the original dev-oriented filter)
🌐 global supports StackOverflow + GitHub + NPM + Wikipedia + SEO Spam

devglobal
GoogleuBO - add this filteruBO - add this filter
DuckDuckGouBO - add this filteruBO - add this filter
DuckDuckGo LiteuBO - add this filteruBO - add this filter
Google+DDGuBO - add this filteruBO - add this filter
StartpageuBO - add this filteruBO - add this filter
BraveuBO - add this filteruBO - add this filter
EcosiauBO - add this filteruBO - add this filter
All Search EnginesuBO - add this filteruBO - add this filter

More granular versions (StackOverflow-only, GitHub-only, ...)

How to import uBlock filters manually

Manually import filters

  1. Open uBlock Origin settings
  2. Under the "Filter lists" tab, scroll to the bottom where it says “Custom” and click the “Import” checkbox to reveal the custom URL textbox
  3. Append the URL https://raw.githubusercontent.com/quenhus/uBlock-Origin-dev-filter/main/dist/google_duckduckgo/all.txt in the textbox
  4. Press Apply Changes in the upper left

Note: In dist/, you can find filters for other search engines (Google, DuckDuckGo, Startpage or Brave). You can use and combine these filters by using the raw URL of dist/ files.

Other filter formats (uBlacklist, hosts filter, ...)

This project also provide filter in other formats:

  • uBlacklist (more efficient than uBO in this case)
  • macOS userscript
  • Domains filter (can be used with a Pi-hole/Firewall)
  • DNS hosts filter (can be used in /etc/hosts)
devglobalStackOverflowGitHubNPMWikipediaSEO Spam
uBlacklistLinkLinkLinkLinkLinkLinkLink
macOS userscriptLinkLinkLinkLinkLinkLinkLink
Domains filterLinkLinkLinkLinkLinkLinkLink
DNS hosts filterLinkLinkLinkLinkLinkLinkLink

Adding URL's

Please create a pull-request or start an issue with evidence against the "copycats".

Security

For simplicity and auto-updates, uBlock Origin filters rely on the last commit of the main branch, as every other uBO filters. For now, it seems this method does not raise security issues. However, you can import uBlock Origin filters with a reference to a given commit, not the main branch. Filters won't auto-update but they will be auditable by your own eyes.

Scope of this filter

To me, a copycat is a website that:

  • mirrors most of GitHub/SO content, automatically and without useful additional work on the content,
  • prevents the user to interact easily with the resource (upvote, comment or reply),
  • might use SEO techniques to catch users who would have otherwise reached the original resource,
  • overall, offers no benefits for users over the original resource.

To be more precise:

  • I do not consider automatic translation as a benefit;
  • I do consider a mirror with clear attribution to be a copycat;
  • I do not consider a mirror created for privacy concern to be a copycat, except if it uses aggressive SEO techniques;
  • This uBlock filter is my own filter, for my usage and can't obviously satisfy everyone.

Sources

Do your own

  1. List URL that you want to block in a .txt in the data/ folder
  2. Use src/generate.py, which generate files in dist/ you can use as uBlock filters

Note: You can use letsblock.it to create your own filter.

dev
ublock
ublock-origin

quenhus/uBlock-Origin-dev-filter

Filters to block and remove copycat-websites from DuckDuckGo, Google and other search engines. Specific to dev websites like StackOverflow or GitHub.

Python

2,322

520 commits

updated Apr 24, 2025

See the code

README

uBlock-Origin-dev-filter

Filters to block and remove copycat-websites from DuckDuckGo, Google and other search engines. Used to be specific to dev websites like StackOverflow or GitHub, but it currently supports others like Wikipedia.

To use this tools, you should have uBlock Origin installed.

Import into uBlock Origin

Select the filters flavors you want, depending on your needs and search engine:

💻 dev supports StackOverflow + GitHub + NPM (the original dev-oriented filter)
🌐 global supports StackOverflow + GitHub + NPM + Wikipedia + SEO Spam

devglobal
GoogleuBO - add this filteruBO - add this filter
DuckDuckGouBO - add this filteruBO - add this filter
DuckDuckGo LiteuBO - add this filteruBO - add this filter
Google+DDGuBO - add this filteruBO - add this filter
StartpageuBO - add this filteruBO - add this filter
BraveuBO - add this filteruBO - add this filter
EcosiauBO - add this filteruBO - add this filter
All Search EnginesuBO - add this filteruBO - add this filter

More granular versions (StackOverflow-only, GitHub-only, ...)

How to import uBlock filters manually

Manually import filters

  1. Open uBlock Origin settings
  2. Under the "Filter lists" tab, scroll to the bottom where it says “Custom” and click the “Import” checkbox to reveal the custom URL textbox
  3. Append the URL https://raw.githubusercontent.com/quenhus/uBlock-Origin-dev-filter/main/dist/google_duckduckgo/all.txt in the textbox
  4. Press Apply Changes in the upper left

Note: In dist/, you can find filters for other search engines (Google, DuckDuckGo, Startpage or Brave). You can use and combine these filters by using the raw URL of dist/ files.

Other filter formats (uBlacklist, hosts filter, ...)

This project also provide filter in other formats:

  • uBlacklist (more efficient than uBO in this case)
  • macOS userscript
  • Domains filter (can be used with a Pi-hole/Firewall)
  • DNS hosts filter (can be used in /etc/hosts)
devglobalStackOverflowGitHubNPMWikipediaSEO Spam
uBlacklistLinkLinkLinkLinkLinkLinkLink
macOS userscriptLinkLinkLinkLinkLinkLinkLink
Domains filterLinkLinkLinkLinkLinkLinkLink
DNS hosts filterLinkLinkLinkLinkLinkLinkLink

Adding URL's

Please create a pull-request or start an issue with evidence against the "copycats".

Security

For simplicity and auto-updates, uBlock Origin filters rely on the last commit of the main branch, as every other uBO filters. For now, it seems this method does not raise security issues. However, you can import uBlock Origin filters with a reference to a given commit, not the main branch. Filters won't auto-update but they will be auditable by your own eyes.

Scope of this filter

To me, a copycat is a website that:

  • mirrors most of GitHub/SO content, automatically and without useful additional work on the content,
  • prevents the user to interact easily with the resource (upvote, comment or reply),
  • might use SEO techniques to catch users who would have otherwise reached the original resource,
  • overall, offers no benefits for users over the original resource.

To be more precise:

  • I do not consider automatic translation as a benefit;
  • I do consider a mirror with clear attribution to be a copycat;
  • I do not consider a mirror created for privacy concern to be a copycat, except if it uses aggressive SEO techniques;
  • This uBlock filter is my own filter, for my usage and can't obviously satisfy everyone.

Sources

Do your own

  1. List URL that you want to block in a .txt in the data/ folder
  2. Use src/generate.py, which generate files in dist/ you can use as uBlock filters

Note: You can use letsblock.it to create your own filter.

dev
ublock
ublock-origin

Significant stargazers

(top 24 of 70)

Frazer Smith

206 followers · starred Aug 2023

Vincent Bernat

1,271 followers · starred Jan 2022

Simon Lydell

576 followers · starred Sep 2022

Jelte Fennema-Nio

381 followers · starred Jul 2022