Skip to content

Blocks specific sites from appearing in Google search results

License

Notifications You must be signed in to change notification settings

SpuzzSomchai/uBlacklist

 
 

Repository files navigation

uBlacklist

Blocks specific sites from appearing in Google search results

Chrome Web Store / Firefox Add-ons / Mac App Store (by Group-Leafy)

Description

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)/).

For subscription providers

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.

For developers

Build

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

Before opening a pull request, you should make sure that 'build', 'lint' and 'test' pass.

yarn build

yarn lint
# Some lint errors can be fixed automatically
# yarn lintfix

yarn test

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=...

Locale

To add a locale,

  1. Determine an ISO language code such as en referring to kLanguageInfoTable.
  2. Copy src/locales/en.json.ts to src/locales/${languageCode}.json.ts and translate entries.
  3. Open src/scripts/dayjs-locales.ts and import the dayjs locale.
  4. To localize description and screenshots on Chrome Web Store and Firefox Add-ons, create web-store-assets/${languageCode}/ and add files.

Author

iorate (Twitter)

License

uBlacklist is licensed under MIT License.

About

Blocks specific sites from appearing in Google search results

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%