Coder Social home page Coder Social logo

codecopy / ublacklist Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iorate/ublacklist

0.0 0.0 0.0 5.04 MB

Blocks specific sites from appearing in Google search results

Home Page: https://iorate.github.io/ublacklist/

License: MIT License

JavaScript 0.04% TypeScript 97.11% SCSS 2.85%

ublacklist's Introduction

uBlacklist

Blocks specific sites from appearing in Google search results

Chrome Web Store / Firefox Add-ons

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

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

Engine

To add support for a search engine other than Google,

  1. Determine a search engine ID.
  2. Create src/scripts/search-engines/${searchEngineId}.ts and export an object of type SearchEngine.
  3. Open src/scripts/types.ts and update SearchEngineId.
  4. Open src/scripts/supported-search-engine.ts and update supportedSearchEngines.

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. If you translated dayjsLocale, open src/scripts/dayjs-locales.ts and update imports.
  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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.