BobTron / Reroute Google CAPTCHA

// ==UserScript==
// @name         Reroute Google CAPTCHA
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  When google whines that you're trying to stop them from being a stalker via TrackMeNot, use this script to reroute searches from the captcha to bing instead
// @author       Justin Ly
// @match        https://ipv4.google.com/sorry/*
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    // window.onload = function(){
        var a = document.getElementsByTagName("div");
        var searchQuery = /search\?q(?:\=|search)(.+?)&ie/.exec(a[0].textContent)[1];
        window.open("https://www.bing.com/search?q=" + searchQuery,"_self");
    // };
})();