Greasy Fork 还支持 简体中文。

Bypass Google Sorry (reCAPTCHA)

Redirect Google reCAPTCHA to new search

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Bypass Google Sorry (reCAPTCHA)
// @version      1.0.0
// @description  Redirect Google reCAPTCHA to new search
// @author       lord_ne (modified from script by Ang Li)
// @include      *://www.google.*/sorry/*
// @grant        none
// @run-at       document-start
// @namespace https://greasyfork.org/users/230713
// ==/UserScript==

// Redirects Google Sorry page to a different search engine
// Original script: https://greasyfork.org/en/scripts/33226-bypass-google-sorry-recaptcha

function getParameterByName(name, url, decode) {
    name = name.replace(/[\[\]]/g, "\\$&");
    let regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)");
    let results = regex.exec(url);
    if (!results) return null;
    if (!results[2]) return '';
    if (decode) {
        return decodeURIComponent(results[2].replace(/\+/g, " "));
    } else {
        return results[2];
    }
}

(function() {
    'use strict';
    var searchEngineURL = "https://www.bing.com/search?q=";
    //var searchEngineURL = "https://duckduckgo.com/?q=";
    //var searchEngineURL = "https://search.yahoo.com/search?p=";
    //var searchEngineURL = "https://www.ecosia.org/search?q=";
    //var searchEngineURL = "https://www.lukol.com/s.php?q=";
    var googleSorryUrl = window.location.href;
    var targetDomain = getParameterByName('continue', googleSorryUrl, true);
    if(targetDomain.match("google")) {
        window.location.replace(searchEngineURL + getParameterByName('q', targetDomain, false));
    }
})();