freedomgamesdev / wikigg-redirect-extension

An extension for Firefox and Chrome-based browsers that redirects to wiki.gg wikis.
MIT License
31 stars 13 forks source link

Suggestion: add Google Search functionality to more search engines #2

Open SlyAceZeta opened 1 year ago

SlyAceZeta commented 1 year ago

The two that immediately come to mind are DuckDuckGo and Bing.

alex4401 commented 1 year ago

Started some work on this, but Google filter needs an update first as they're doing an A/B on search results format. image

alex4401 commented 1 year ago

Doesn't look like it'll be possible to implement support for Bing, as they heavily obfuscate their links as part of click tracking - therefore the help wanted label. DDG seems straightforward though.

alex4401 commented 1 year ago

As an update, I've got a prototype for DuckDuckGo but am not exactly happy with it: DDG's web interface is rendered primarily with JavaScript, and as I intended to use isolated content scripts (as I should in Manifest V3 land) DDG's (quite clean but private) API is inaccessible. The "better" method requires script injection with no isolation. But relying on the JS interfaces which may change at any time does sound like asking for trouble.

alex4401 commented 1 year ago

DuckDuckGo is being worked on in #16.

Mach565 commented 9 months ago

I would like to request support for Startpage too, if it's not too much of a hassle.

SnorlaxMonster commented 8 months ago

Doesn't look like it'll be possible to implement support for Bing, as they heavily obfuscate their links as part of click tracking - therefore the help wanted label.

On Bing, the original URL can be retrieved from the u parameter in the Bing URL, by removing the a1 prefix and decoding it as Base64.

This same problem came up for Indie Wiki Buddy https://github.com/KevinPayravi/indie-wiki-buddy/issues/448. Using this approach has allowed the extension to work successfully on Bing.

As noted by various users on this Stack Overflow post, it's unclear what the significance of a1 is, and what should be done if the prefix happens to be something other than a1.

alex4401 commented 8 months ago

Thank you, that's good to know.

Clayblockunova commented 4 months ago

when will Bing filter be finished? should we add extra optimization for CN Bing?

alex4401 commented 4 months ago

The contributor who started implementing it seems to have stalled the work. I'm currently swarmed with other projects and university, so it may take a while before I'm able to take over.