Created
March 18, 2016 08:46
-
-
Save jandahl/3748cd6cd6535e86edfb to your computer and use it in GitHub Desktop.
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 Don't track my clicks, reddit | |
// @namespace http://reddit.com/u/OperaSona | |
// @author OperaSona | |
// @match *://*.reddit.com/* | |
// @grant none | |
// ==/UserScript== | |
var a_col = document.getElementsByTagName('a'); | |
var a, actual_fucking_url; | |
for(var i = 0; i < a_col.length; i++) { | |
a = a_col[i]; | |
actual_fucking_url = a.getAttribute('data-href-url'); | |
if(actual_fucking_url) a.setAttribute('data-outbound-url', actual_fucking_url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment