Bypass Google Sorry (reCAPTCHA)

Redirect Google reCAPTCHA to new search

目前為 2021-02-11 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Bypass Google Sorry (reCAPTCHA)
// @version      0.1
// @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://gf.qytechs.cn/users/230713
// ==/UserScript==

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

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

function searchEngineURL() {
    var newURL;
    newURL = "https://duckduckgo.com/?q=";
    //newURL = "https://search.yahoo.com/search?p=";
    //newURL = "https://www.bing.com/search?q=";
    //newURL = "https://www.ecosia.org/search?q=";
    //newURL = "https://www.lukol.com/s.php?q=";
    return newURL;
}

(function() {
    'use strict';
    var googleSorryUrl = decodeURIComponent(window.location.href);
    var targetDomain = getParameterByName('continue', googleSorryUrl);
    if(targetDomain.match("google")){
        window.location.replace(searchEngineURL() + getParameterByName('q', googleSorryUrl));
    }
})();

QingJ © 2025

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