This file contains 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
//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 |