Created
January 19, 2018 19:22
-
-
Save mvoelk/4f41b031f7c7e06f33aa4fd46f8d8351 to your computer and use it in GitHub Desktop.
Userscript - Remove redirection from google links
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google Redirect Remover | |
// @namespace Google Redirect Remover | |
// @description Stop google links from using their tracking redirect | |
// @version 1.0.0 | |
// @include https://*.google.com/* | |
// @include https://*.google.de/* | |
// ==/UserScript== | |
for (i = 0; i < document.links.length; i++) { | |
void(document.links[i].href = unescape(document.links[i].href)); | |
void(document.links[i].href = document.links[i].href.replace(/^http.*(http[^&%]*).*/, '$1')); | |
void(document.links[i].onmousedown = null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment