Coder Social home page Coder Social logo

allanburleson / duckduckgo-redirect Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 75 KB

duckduckgo-redirect is a simple WebExtension that redirects searches on Google and other search engines to DuckDuckGo.

License: GNU General Public License v3.0

JavaScript 84.27% CSS 8.65% HTML 7.08%
duckduckgo firefox privacy webextension

duckduckgo-redirect's People

Contributors

allanburleson avatar eagle3386 avatar hegezcc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

djaeger hegezcc

duckduckgo-redirect's Issues

Chromium plugin

Would it be possible to package this as a plugin for chrome-based browsers?

Add support for Bing searches originating from Visual Studio

In their infinite wisdom, Microsoft chose to not offer search engine selection for IntelliSense compile error codes, e. g. CS0006, but instead hard-code the request as https://bingdev.cloudapp.net/BingUrl.svc/Get?selectedText=Metadata file '[absolute path which might contain sensitive information]' could not be found&mainLanguage=C#&requestId=[a GUID, probably for internal analytics]&errorCode=CS0006

Because of the initially different hostname, the DDG redirector doesn't catch it - my PR #8 aims to mitigate that a bit.

Perhaps, if @allanburleson is willing to guide me, I can further enhance the PR to include the mainLanguage parameter, i. e. insert it at the start of the DDG search query, enabling DDG to search for C# CS0006 instead of only CS0006.

Additionally, this could be even further enhanced by including everything from the selectedText value except the sensitive part between the apostrophes.

Breaks Google Maps search

Steps to reproduce:

  1. Go to https://maps.google.com/
  2. Search for some random place, e. g. Berlin, via upper left search input field.

Expected result:
Google Maps moves & centers at Berlin on the map, lists details at the left sidebar, etc.

Actual result:
Only a small toast notification at the bottom appears, stating: Server error. Please try again later

The error happens due to the extension redirecting not only Google searches, but Google Maps searches, too & that fails due to CORS missing allow origin:
image

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.