Code Monkey home page Code Monkey logo

ublacklist's Introduction

uBlacklist

简体中文

Blocks specific sites from appearing in Google search results

Chrome Web Store / Firefox Add-ons / App Store (for macOS and iOS, thanks to Group-Leafy)

Description

This extension prevents the sites you specify 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)/).

You can synchronize rulesets across devices via cloud storage. At the moment, Google Drive and Dropbox are supported.

You can also subscribe to public rulesets. Some subscriptions are listed on the website: https://iorate.github.io/ublacklist/subscriptions

Supported search engines

This extension is available in the below search engines.

Web Images Videos News
Google ✔️ ✔️ ✔️ ✔️
Bing ✔️ ✔️ ✔️ ✔️
Brave *3 ✔️ ✔️ ✔️ ✔️
DuckDuckGo ✔️ ✔️ ✔️ ✔️
Ecosia ✔️
Qwant ✔️ ✔️ *1 ✔️
SearX *2 ✔️ ✔️ ✔️ ✔️
Startpage ✔️ ✔️ ✔️
Yahoo! JAPAN ✔️
Yandex ✔️ ✔️

*1 Only if "Always play videos on Qwant.com" is turned off
*2 Only certain public instances are supported. If you want to add support for your own SearX/SearXNG search engine, edit src/common/search-engines.ts and build the extension manually
*3 Due to the difficulty in obtaining the full URLs of image links, this extension does not support per-subdomain blocking in Brave Image Search. (For example, if the link is to "www.example.com", it will block the entire "example.com").

For subscription providers

To publish a ruleset as a subscription, place a ruleset file encoded in UTF-8 on a suitable HTTP(S) server, and publish the URL. Here is an example hosted on GitHub:
https://raw.githubusercontent.com/iorate/ublacklist-example-subscription/master/uBlacklist.txt

In uBlacklist >=6.6.0 for Chrome, subscription links are available. To add a subscription with name and url, the following URL can be used as a shortcut to the options page:

https://iorate.github.io/ublacklist/subscribe?name={urlEncode(name)}&url={urlEncode(url)}

For the above example:
https://iorate.github.io/ublacklist/subscribe?name=Example&url=https%3A%2F%2Fraw.githubusercontent.com%2Fiorate%2Fublacklist-example-subscription%2Fmaster%2FuBlacklist.txt

For developers

Build

To build this extension, Node.js>=16 and Yarn are required.

git clone https://github.com/iorate/ublacklist.git

cd ublacklist

yarn

# yarn build <browser:=chrome-mv3> <mode:=development>
yarn build firefox production

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

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

yarn test

yarn build-all

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 web stores, create web-store-assets/${languageCode}/ and add files.
    • Screenshot localization is available only on Chrome Web Store.
    • Screenshots should be 1280x800.

Author

iorate (Twitter)

License

uBlacklist is licensed under MIT License.

ublacklist's People

Contributors

bcaso avatar c4em avatar clvs7-gh avatar dansnow avatar deci8belios avatar elliotwutingfeng avatar felix2yu avatar fikafusik avatar freso avatar frousties avatar genment avatar gjshinji avatar honeyluka avatar iorate avatar ite-usagi avatar kphrx avatar lyshie avatar mehee8 avatar munierujp avatar mznu avatar mzyy94 avatar notainutilis avatar petercpg avatar ranmaru22 avatar rsuwa avatar semro avatar senge-dev avatar shuangcui avatar throwaway-d avatar udev2019 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ublacklist's Issues

"Block this site" overlay "Translate this page"

Screen Shot 2020-04-15 at 5 48 24 PM

Expected Behavior

Buttons display side by side.

Actual Behavior

They're overlapped.

Steps to Reproduce the Problem

  1. Use English as the default language of Google Search.
  2. Search for "最新 バージョン Android"

Specifications

  • OS: macOS Catalina
  • Browser: Google Chrome 81
  • Other extensions that might interfere: Not sure

where can i edit all rules ?

it's so nice of your make this chrome ext ! thanks!


i want to cancel some block rule ,but i can't find right place

please help me out

Synchronize options other than block rules

Expected Behavior

I subscribe blacklist from
https://raw.githubusercontent.com/arosh/ublacklist-stackoverflow-translation/master/uBlacklist.txt
Please sync subscribe list in the same way as blacklist in setting's General section.

Actual Behavior

Subscription list is not synced so I have to add subscription URL to every running browsers.

Steps to Reproduce the Problem

  1. Add subsctiption URL to the addon.
  2. Enable sync.
  3. Open the addon settings in another machine.
  4. Enable sync.
  5. See if blacklist is working.(Actually not.)

Specifications

  • OS:Windows 10 64bit
  • Browser:Firefox
  • Other extensions that might interfere:

Feature request: add more search engines

I haven't looked into your code friend so I don't know if this would be trivial or not, but would intercepting and removing search results from DuckDuckGo, for example, be as simple as adding this line https://duckduckgo.com/?q= to the end of the google-matches.js file?

Would you accept a PR for Ecosio search engine?

In the spirit of Hacktoberfest I thought I'd add support for Ecosia. Just had a quick look at the codebase and it seems viable to do as a weekend project 😄

Would you be happy to accept a PR that adds support for Ecosia, and would you do me the honour of labelling the PR as "hacktoberfest accepted" if it gets merged and meets your standards? 🙇🏾

Edit: hacktoberfest link

And thanks for the excellent plugin!

Dark Mode

Could you bring dark mode support for the extension setting page?
And how can we help you translate the extension to a specific language?

Version 4.4.0 after doesn't work on Firefox 56.0.2

Expected Behavior

If I click 'setting' button on addons manager (about:addons) of firefox, the setting mode appears.

Actual Behavior

Even if I click 'setting' button on addons manager (about:addons) of firefox, the setting mode does not appear (blank page).

Steps to Reproduce the Problem

like this pic
https://i.imgur.com/nIilJMH.png

Specifications

  • OS: Windows 10 64bit (also the same on Windows 7 64bit)
  • Browser:Firefox 56.0.2
  • Other extensions that might interfere: None

[feature request] link to settings page in popup

Right now if I want to see or edit all the urls I've blacklisted I have to click the triple dot > Extensions > uBlacklist > Details > scroll down > Extension options. It would be convenient if I just had to click on the popup > "See all blocked sites". Like I can with uBlock Origin.

'Featured snippets' still show

Hi there. The extension is great, useful for clearing results of the repeat bad offenders. Unfortunately, 'Featured snippets' still show up even when from blocked sites. If possible, could these also be blocked? And/or an option given to do so?

image

Not working for Google mobile search page

Search anything on Google with Android mobile phone via any browser that supports Chrome extensions (For example, Kiwi browser based on Chromium or FireFox), the search result page looks having not Block button.

FireShot Capture 008 - uBlacklist - Google Search - www google com

Specifications

  • OS: Android 10
  • Browser: Wiki Browser (Or other Browsers that support extensions on Android)
  • Other extensions that might interfere: None

This addon's permission are a bit scary

This extension seems neat, but the fact that it requires "Access your data" (usernames and passwords potentially included) on 194 sites is quite scary (only 3 listed, by the way).

Is it possible to limit it to fewer sites and permissions, at least optionally?
(for example: only google.com and no usernames and passwords)

Regular Expressions Not Working

Expected Behavior

Something like .*pinterest.* should block any URL containing the string "pinterest" (this example is aggressively greedy for the sake of simplicity).

Actual Behavior

Doesn't ;)

Specifications

  • OS: MacOS
  • Browser: Firefox 76
  • Other extensions that might interfere: None that I know of

Suggestion: Donation options?

OK, not really a bug, but a suggestion.

My issue is: A developer's gotta eat! ;)

I am stoked that @iorate brought back this extension for Google Chrome (my sometimes default browser) in which the "official" Google extension just stopped working. (I left a review of the extension on the Chrome Web Store BTW).

But development, as it is usually said, a thankless job. I think iorate needs some kind of encouragement, by maybe donations like PayPal, Patreon, Bitcoin, whatever.

I'd like to suggest this. It's a great idea, and I like to thank @iorate for making my life easier by doing the right thing, and that's by donating a little bit to keep development going.

73, KI5JYD

Firefox page rendering issue

In Chrome no problems but in Firefox, the page renders like this: (Attached)

image

Can you fix the "Block this site" text please to render correctly?

Disable confirmation for Blocking

Hi, thank you for such a useful extension, really simple and nice.
When you clic the "Block this site" would be nice to block directly without the need of an extra click.

hotkey to auto-hide

if hotkey auto-hides current site instead of it being muti-step

that would be make better the ui ux

if need to infrequently edit can go to options

related: pistom/hohser#156

Where to insert URL exactly

Hello,

Im new and I don't know how to use blacklist. I REALLY need to hide a url or remove it from google search. The url contains videos and I hope you could let me know how I can message you to guide me, if possible.

Best regards and thank you for creating such an extension.

uBlacklist not blocking domains on DuckDuckGo's other sections

Expected Behavior

uBlacklist blocks on all sections

Actual Behavior

uBlacklist only blocks on the "All" section (I hope this isn't confusing)

Steps to Reproduce the Problem

  1. Search on DuckDuckGo for something you have blocked
  2. Go to another section, such as Images or News
  3. Results from blocked sites appear

Specifications

  • OS: Windows 10 1909
  • Browser: Firefox 83.0
  • Other extensions that might interfere: Not sure what to put here. I don't think any of my other extensions are interfering.

Are you willing to develop a Safari version?

I used google Translate

I use it well on my window edge (chrome base).
This is a very good extension. You can get rid of the damn shit site. I am very happy.
However, I prefer native apps. I don't use chrome very often. I only use it very occasionally when it can't be helped. Because you are using the cloud.
So I would like to have a safari version too.

Thanks for reading.

Softsonic and uptodown and similer sites won't get blocked!

Hello

Those sites appears like these on google search:

://the-tree-team-hide-app.en.uptodown.com/
://hide-apps-and-lock-apps.en.softonic.com/
://hidden-android-settings.en.softonic.com/
://applock-and-hide.en.softonic.com/
://gimp.en.uptodown.com/

It also has the same issue with other searches that addon support,
the main sites gets blocked but not these links!

Sincerely
Alex

DuckDuckGo inlined ad results are not completely removed from the search listing

Expected Behavior

Blocked results should be completely invisible, including any child links or advertisements

Actual Behavior

A paid DuckDuckGo result that has child links will have the main entry removed however the child links will remain visible.

Steps to Reproduce the Problem

  1. block an DuckDuckGo advertisement result manually (block this page will not appear directly on result)
  2. refresh the page
  3. observe

GIF

ublacklist-bug-duckduck

Add Baidu support

I am really enjoying the extension, blocking some low-quality site is very useful for me.

For some reason, I need to use Baidu( most popular in Chinese searching ), but those low-quality sites show up again, can you add support for Baidu.

Localization of the description of the extension in the "details" tab

Hello, thanks for your work!

I do not understand browser extensions. Is it possible to localize the description of the extension in the "Details" tab (I use firefox browser)? I found the description text in chrome-web-store/en/description.txt. Need to create a similar file in the chrome-web-store/ru folder?

details

Breaks page thumbnails

The extension works great, especially since Personal Blocklist stopped working entirely, but it also seems to break extensions that insert page thumbnails, like SearchPreview, which Personal Blocklist didn't.
Could you somehow improve coexistence?

Twitter is showing even if it gets blocked!

Hello

When using adguard vpn extension for firefox with usa or uk settings,
twitter showing when searching for example: amazon, ebay ,newegg and etc.......

P.S: Its not showing when using Spanish and Italian and other countries vpn!

Sincerely
Alex

Why sync isn't supported on Firefox for Android?

When I first discovered the sync feature, I was thinking: that's great so I can sync my blacklist with my phone. But it turned out that the sync options are hidden on Firefox for Android.

Is there some technical issues to sync on Firefox for Android? (I looked up the issues, the source code and commit history but didn't find anything.)

Don't block site when site:<website.domain> operator is used

Expected Behavior

Greetings!
The problem I have is I want to use the "site:" search operator in my search engines, the search results page should be visible.

Actual Behavior

Search results page is blocked when using "site:" search engine operator. Example site:youtube.com is blocked. I don't want that. I want it blocked in web results, not when I want to search in the site explicitly.

Steps to Reproduce the Problem

  1. Block a website using this extension.
  2. type site:<website-you-just-blocked-here.domain> insert search term of choice here in your search engine of choice.
  3. Hit return.
  4. The search results page is invisible. I don't want that.

Specifications

  • OS: Windows 8.1 x64
  • Browser: Mozilla Firefox release channel
  • Other extensions that might interfere: Ublock origin, noscript? They shouldn't, since it worked fine prior to installing this extension.

I'm not sure how difficult this would be to program, but since you're already modifying search result pages I imagine this can be undone.

Awesome extension, btw! Now we can modify our results!

Block all websites with a given name

Hi,
And thanks a lot for coding this extension that is extremely useful as Google Search became less and less pertinent.
I'm having a problem though : Pinterest (for example) is coming a lot in my google search results. So of course I can block pinterest.com but then I'll still have results from pinterest.it pinterest.uk pinterest.jp , etc.
Is there a way to block, in this example, any pinterest with something like ://pinterest./ ?
Thanks in advance.

P.S : solution if it exists might be obvious but I'm just a 3D artists and I can't figure out how to do that ;)
Cheers.
hansolocambo.

https://hansolocambo.com

The extension does not take effect in the second page of search results

Expected Behavior

Block the site

Actual Behavior

the site not blocking and Block button is not displayed

Steps to Reproduce the Problem

1.Install AC-Baidu(Github or GreasyFork)in Tampermonkey
2.Search a keyword in Google,click "CUSTOM" in the top-right corner,open "Auto Pager" and save
3.

Specifications

  • OS:Windows 10 64-bit
  • Browser:Chrome Stable 86.0.4240.183 (64-bit)
  • Other extensions that might interfere:-

New Logo for uBlacklist

Hi,

I'm designing for open source projects, expanding my portfolio. I want designing an icon for your project. There are a few ideas in my mind, I hope you accept and I do them. If you have an idea, please let me know. In this way we create a icon.

Best Regards.

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.