Giter Site home page Giter Site logo

DuckDuckGo compatibility about ublacklist HOT 10 CLOSED

iorate avatar iorate commented on May 26, 2024 1
DuckDuckGo compatibility

from ublacklist.

Comments (10)

iorate avatar iorate commented on May 26, 2024 2

Added initial support for DuckDuckGo (v3.5.0).

from ublacklist.

vphantom avatar vphantom commented on May 26, 2024 1

The matches regex seems to be too restrictive. My DuckDuckGo URLs are usually just https://duckduckgo.com/ (no search?). Maybe that's it?

from ublacklist.

iorate avatar iorate commented on May 26, 2024 1

Re-opened. I'm not so willing to add support for other engines by myself, but pull requests are welcome.

DuckDuckGo seems to accept both HTTP and HTTPS, and both GET and POST.
settings

So matches should match more URLs, for example (not tested),

matches: [
  '*://duckduckgo.com/?*',  // GET
  '*://duckduckgo.com//',   // POST
],

from ublacklist.

iorate avatar iorate commented on May 26, 2024 1

Yes it's v3.5.0. Support for other search engines is dynamically injected, and so doesn't appear in the manifest file.

from ublacklist.

iorate avatar iorate commented on May 26, 2024 1

@vphantom Aren't the "block this site" links shown on DDG with the "Hide the 'block this site' links" option off? If not, would you please open an issue and tell me your environment (OS, browser, DDG settings, and other extensions working on DDG)?

Known restrictions for DDG:

  • Does not work for search types other than 'All' ('Images', 'News' and 'Videos').
  • Does not work on Firefox if the HTTP method is set to 'POST'. (I just found this and will fix it later)

from ublacklist.

iorate avatar iorate commented on May 26, 2024

I don't use DuckDuckgo, so honestly I have no motivation to add DuckDuckGo support and maintain it.
Thank you for your comment.

from ublacklist.

vphantom avatar vphantom commented on May 26, 2024

If you closed the issue instead of tagging it as "won't implement, but contributions welcome", does this mean you wouldn't be interested in a pull request?

I haven't worked in TypeScript before, but I might be tempted to give it a try based on the example you set with StartPage.

from ublacklist.

Semro avatar Semro commented on May 26, 2024

I've tried to add duckduckgo, but solution doesn't work and I can't figure out why.

from ublacklist.

vphantom avatar vphantom commented on May 26, 2024

Out of curiosity, are you sure it's v3.5.0? I don't see "duckduckgo" in the manifest file.

from ublacklist.

vphantom avatar vphantom commented on May 26, 2024

Ah ha! I had to re-enable StartPage and also enable DDG in uBlacklist's options after the update. I see now. :) Blocking seems to work well. No injection of "add" links in my layout, but I can live with that tradeoff.

Thank you very much for your efforts!

from ublacklist.

Related Issues (20)

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.