// ==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://greasyfork.org/users/230713 // @downloadURL none // ==/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) { 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)); } })();