Skip to content

Instantly share code, notes, and snippets.

@jolij
Last active August 29, 2015 14:09
Show Gist options
  • Save jolij/8d59131a94335e480f78 to your computer and use it in GitHub Desktop.
Save jolij/8d59131a94335e480f78 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Don't track me Google
// @namespace Rob W
// @include *://www.google.*/*
// @version 1.1
// ==/UserScript==
var fuckRWT = function() {
"use strict";
var i = 0, len, a = document.querySelectorAll('h3 a'),t,url;
for (len = a.length; i < len; i++) {
t = a[i];
url = t.getAttribute('data-href');
t.removeAttribute('onmousedown');
if (url) {
t.href = url;
}
}
console.log('fuck rwt.' + i);
return i > 0;
};
var listener = function(e) {
"use strict";
if (e.target && e.target.nodeType === 1 && e.target.getAttribute('data-async-context')) {
fuckRWT();
//setTimeout(fuckRWT, 1500);
//setTimeout(fuckRWT, 2000);
}
};
window.addEventListener('DOMNodeInserted',listener,false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment