// ==UserScript== // @name Recaptcha Skipper (Google Sorry) // @namespace c4ca4238a0b923820dcc509a6f75849b // @version 0.4.0 // @description Try to skip google recaptcha error page automatically through reloading the page. If not, redirect to configurable url // @author _SUDO // @include *://www.google.*/sorry/* // @grant GM_addStyle // @compatible chrome Chrome + Tampermonkey or Violentmonkey // @compatible firefox Firefox + Greasemonkey or Tampermonkey or Violentmonkey // @compatible opera Opera + Tampermonkey or Violentmonkey // @compatible edge Edge + Tampermonkey or Violentmonkey // @compatible safari Safari + Tampermonkey or Violentmonkey // @downloadURL https://update.greasyfork.icu/scripts/432381/Recaptcha%20Skipper%20%28Google%20Sorry%29.user.js // @updateURL https://update.greasyfork.icu/scripts/432381/Recaptcha%20Skipper%20%28Google%20Sorry%29.meta.js // ==/UserScript== /* jshint esversion: 6 */ (function (){ 'use strict'; const config = { redirect_to: true, // Will redirect the actual searched query to the defined url (from ?q=[terms]) promp_redirect: true, // Create UI to cancel redirection } const searchEngines = [ // The list of top buttons // Note: the `default` sets the search engine to use for the automatic redirection. { name: 'DuckDuckGo', url: 'https://duckduckgo.com/?q=', icon: 'https://duckduckgo.com/favicon.ico', default: true }, { name: 'Bing', url: 'https://bing.com/?q=', icon: 'https://www.bing.com/favicon.ico' }, { name: 'Brave', url: 'https://search.brave.com/search?q=', icon: 'https://www.brave.com/favicon.ico' }, { name: 'SearX', url: 'https://metasearx.com/?q=', icon: 'https://metasearx.com/favicon.ico' }, { name: 'Yandex', url: 'https://yandex.com/search/?text=', icon: 'https://yandex.com/favicon.ico' }, { name: 'Startpage', url: 'https://www.startpage.com/sp/search?q=', icon: 'https://www.startpage.com/favicon.ico' }, { name: 'Ecosia', url: 'https://www.ecosia.org/search?q=', icon: 'https://www.ecosia.org/favicon.ico' }, { name: 'Yahoo', url: 'https://search.yahoo.com/search;?p=', icon: 'https://www.yahoo.com/favicon.ico' }, ]; class SkipCaptcha { constructor() { this.url = false this.tries = 1 } // Create a 3sec counter to allow the user to cancel automatic redirection create_Redirect_UI () { if (!config.promp_redirect) return this; // Will automatically allow let redirect_allowed = true // By default it's automatically allowed redirect // styles GM_addStyle(` .search-buttons { gap: 5px; display: flex; flex-wrap: wrap; padding-bottom: 10px; } .search-buttons a { display: flex; width: 40px; height: 40px; background: white; align-items: center; border-radius: 5px; border: 1px solid gray; justify-content: center; transition: background 0.3s, transform 0.2s; } .search-buttons a:hover { background: lightgray; transform: scale(1.1); } .search-buttons img { width: 24px; height: 24px; } #userUI { display: grid; border-radius: 5px; border: 1px solid gray; grid-template-columns: 0.3fr 1.6fr; } #redirect { display: flex; padding: 10px; cursor: pointer; align-items: center; justify-content: center; border-right: 1px solid gray; } #redirect span { color: black; font-size: 24px; transition: transform 0.3s ease; } #redirect:hover span { transform: scaleX(-1); } #UIcounter[value] { -webkit-appearance: none; -moz-appearance: none; appearance: none; border: none; /* Get rid of default border in Firefox. */ width: 100%; height: 20px; } #UIcounter[value]::-moz-progress-bar { background-color: #09c; /* the stripe layer */ background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.16) 25%, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0) 50%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.16) 75%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 0)), linear-gradient(to right, #09c, #f44); /* we also need background-size, because the stripe must repeat every 20 pixels */ background-size: 60px 50px, 100%; }`) const UIfragmentElement = `
You will be automatically redirected...