Bypass Google Sorry (reCAPTCHA)

Redirect Google reCAPTCHA to new search

Od 25.12.2022.. Pogledajte najnovija verzija.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Bypass Google Sorry (reCAPTCHA)
// @version      0.2.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://greatest.deepsurf.us/users/230713
// ==/UserScript==

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

function getParameterByName(name, url, decode) {
    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 '';
    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 = decodeURIComponent(window.location.href);
    var targetDomain = getParameterByName('continue', googleSorryUrl, true);
    if(targetDomain.match("google")){
        window.location.replace(searchEngineURL + getParameterByName('q', googleSorryUrl, false));
    }
})();