Blocks specific sites from appearing in Google search results
Chrome Web Store / Firefox Add-ons
This browser extension prevents blacklisted sites from appearing in Google search results.
You can add rules on search result pages, or on sites to be blocked by clicking the toolbar icon. Rules can be specified either by match patterns (e.g. *://*.example.com/*
) or by regular expressions (e.g. /example\.(net|org)/
).
To publish a blacklist as a subscription, place a blacklist file encoded in UTF-8 on a suitable HTTP(S) server, and publish the URL. Here is an example hosted on GitHub.
To build this extension, Node.js and Yarn are required.
git clone https://github.com/iorate/uBlacklist.git
cd uBlacklist
yarn
yarn build:firefox:production
NOTE: The API keys and secrets for the sync feature are not included in this repository. To develop the sync feature, set your own API keys and secrets in the .env
file.
DROPBOX_API_KEY=...
DROPBOX_API_SECRET=...
GOOGLE_DRIVE_API_KEY=...
GOOGLE_DRIVE_API_SECRET=...
To add support for a search engine other than Google,
- Determine a search engine ID.
- Create
src/scripts/search-engines/${searchEngineId}.ts
and export an object of typeSearchEngine
. - Open
src/scripts/types.ts
and updateSearchEngineId
. - Open
src/scripts/supported-search-engine.ts
and updatesupportedSearchEngines
.
To add a locale,
- Determine an ISO language code such as
en
referring to kLanguageInfoTable. - Copy
src/_locales/en/messages.json.ts
tosrc/_locales/${languageCode}/messages.json.ts
and translate entries. - If you translated
dayjsLocale
, opensrc/scripts/dayjs-locales.ts
and update imports. - To localize description and screenshots on Chrome Web Store and Firefox Add-ons, create
web-store-assets/${languageCode}/
and add files.
uBlacklist is licensed under MIT License.