Skip to content

Instantly share code, notes, and snippets.

@jandahl
Created March 18, 2016 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jandahl/3748cd6cd6535e86edfb to your computer and use it in GitHub Desktop.
Save jandahl/3748cd6cd6535e86edfb to your computer and use it in GitHub Desktop.
// ==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