Skip to content

Instantly share code, notes, and snippets.

View jordam's full-sized avatar

jordam

View GitHub Profile
//Paste this into a chrome console to dump out a list of the search urls on the page
function fixLinksOfClassL() {
// fix old-style class="l" links
var ts = document.getElementsByClassName("l");
for (var i=0; i < ts.length; i++) {
var t = ts[i];
if (t.tagName == "A") {
// remove javascript callback first
t.removeAttribute("onmousedown");
// fix link if necessary