Forked from fluks/remove_google_tracking_redirection.user.js
Created
November 1, 2020 19:04
-
-
Save masterchop/7736a7b1d3a4a355411c4a304ccc6275 to your computer and use it in GitHub Desktop.
Userscript for removing redirection and tracking(?) data from Google search results
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 Remove Google Redirect And Tracking From Search Results | |
// @description Userscript for removing redirection and tracking(?) data from Google search results. | |
// @version 1 | |
// @author fluks | |
// @include https://*.google.*/search?* | |
// ==/UserScript== | |
document.querySelectorAll('h3.r > a') | |
.forEach(e => { | |
let u = e.href; | |
u = u.replace(/^.*?url\?q=/, ''); | |
u = u.replace(/&.*$/, ''); | |
e.href = decodeURIComponent(u); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment