Bing to Google

This will redirect you to Google from Bing after you search.

< 脚本 Bing to Google 的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发布于:2025-09-11
编辑于:2025-09-11

// This script redirects Bing searches to Google.
//
// IMPORTANT FIX (Edge Copilot new-tab autocomplete case):
// When searching from Microsoft Edge’s new tab with Copilot/autocomplete, Bing often puts
// what you typed into the "pq" parameter (partial query) and the Copilot-completed term
// into the "q" parameter (final query).
//
// The old regex accidentally matched the "q" inside "pq" (e.g., pq=viole and q=violentmonkey),
// so it redirected to Google with "viole" instead of the actual completed query "violentmonkey".
//
// To prevent this, we now match only the standalone "q" parameter (using a boundary like [?&]q=),
// ensuring we use Bing’s final query. (We intentionally ignore "pq".)




var m = location.search.match(/[?&]q=([^&]+)/);
if (m) location.replace("https://www.google.com/search?q=" + encodeURIComponent(decodeURIComponent(m[1].replace(/\+/g, " "))));

发布留言

登录(不可用)以发布留言。

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址