Skip to content

Instantly share code, notes, and snippets.

@blinksmith
Last active February 3, 2017 19:41
Show Gist options
  • Save blinksmith/713fa531972fab77e5ad to your computer and use it in GitHub Desktop.
Save blinksmith/713fa531972fab77e5ad to your computer and use it in GitHub Desktop.
google search url cleaner - userscript
// ==UserScript==
// @name google search url cleaner
// @author blinksmith
// @version 0.1
// @namespace https://gist.github.com/713fa531972fab77e5ad
// @description google search url cleaner
// @include https://encrypted.google.com/?*
// @include http://www.google.*/search?*
// @include https://www.google.*/search?*
// @grant none
// ==/UserScript==
(function() {
var b = function(a) {
var c, b = a.getElementsByTagName("a");
a = b[0];
for (c = 1;a;c++) {
a.removeAttribute("onmousedown"), a = b[c];
}
};
document.addEventListener("load", b(document.body), false);
document.body.addEventListener("AutoPagerize_DOMNodeInserted", function(a) {
b(a.target);
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment