Skip to content

Instantly share code, notes, and snippets.

@XP1
Created February 9, 2012 14:05
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save XP1/1780197 to your computer and use it in GitHub Desktop.
Save XP1/1780197 to your computer and use it in GitHub Desktop.
Disable Google Search rewrite: Disables the rewrite of links in Google Search results.
// ==UserScript==
// @name Disable Google Search rewrite
// @version 1.01
// @description Disables the rewrite of links in Google Search results.
// @author XP1 (https://github.com/XP1/)
// @namespace https://gist.github.com/1780197/
// @include http*://google.*/search?*
// @include http*://*.google.*/search?*
// ==/UserScript==
/*jslint browser: true, vars: true, white: true, maxerr: 50, indent: 4 */
(function (opera, MouseEvent)
{
"use strict";
opera.defineMagicFunction("rwt", function rwtDefinition(realFunction, thisObject, that, string0, string1, string2, resultNumber, id0, id1, id2, r, event) // a, c, g, b, q, h, d, r, i
{
if (event instanceof MouseEvent)
{
var target = event.target;
target.onmousedown = null;
target.removeAttribute("onmousedown");
}
return true;
});
}(this.opera, this.MouseEvent));
@XP1
Copy link
Author

XP1 commented Feb 9, 2012

I posted this user JS in these threads:

Disable or scrub Google search redirects, aka URL modification or obfuscation:
http://my.opera.com/community/forums/topic.dml?id=1292132

Disable or scrub Google search redirects, aka URL modification or obfuscation, before I bash in every computer in sight!:
https://groups.google.com/a/googleproductforums.com/d/topic/websearch/4BXTkaoqoQU/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment