einaregilsson / Redirector

Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.
http://einaregilsson.com/redirector/
MIT License
1.53k stars 158 forks source link

Redirect bing alt searches (images, shopping etc.) to google counterparts. #348

Open zabarocky opened 1 year ago

zabarocky commented 1 year ago

I've managed to do it with bing maps to google maps, but I'm unsure how to go about it with for example images as google doesn't have a URL prefix for images, or at least I think so.

image

NyeUsr commented 9 months ago

In Google it seems to be determined by &tbm=

Examples:

For Bing Images to Google Images: Example URL: https://www.bing.com/images/search?q=test&form=HDRSC3&first=1 Include Pattern: https://www.bing.com/images/search?q=*&* Redirect To: https://www.google.com/search?q=$1&tbm=isch Pattern Type: Wildcard

For Bing Videos to Google Videos: Example URL: https://www.bing.com/videos/search?q=test&FORM=HDRSC4 Include Pattern: https://www.bing.com/videos/search?q=*&* Redirect To: https://www.google.com/search?q=$1&tbm=vid Pattern Type: Wildcard