您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect Google reCAPTCHA to new search
当前为
- // ==UserScript==
- // @name Bypass Google Sorry (reCAPTCHA)
- // @namespace http://angli.io/
- // @version 0.1
- // @description Redirect Google reCAPTCHA to new search
- // @author Ang Li
- // @match https://ipv4.google.com/sorry/*
- // @grant none
- // @run-at document-start
- // ==/UserScript==
- 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 getRandomGoogleURL() {
- var newURL;
- var n = Math.floor(Math.random()*3);
- switch(n) {
- case 0:
- newURL = "https://www.google.co.jp/search?q=";
- break;
- case 1:
- newURL = "https://www.google.com.tw/search?q=";
- break;
- default:
- newURL = "https://www.google.com.hk/search?q=";
- break;
- }
- return newURL;
- }
- (function() {
- 'use strict';
- var queryString = getParameterByName('q', decodeURIComponent(window.location.href));
- window.location.replace(getRandomGoogleURL() + queryString);
- })();