2 ms·
I don't suppose you'd be so kind as to share it?
by SturgeonsLaw 7y ago
I don't suppose you'd be so kind as to share it?
- rasz 7y agoa part of a bigger script: let resultLinks = e ? e.querySelectorAll('.r>a:not([class])') : document.querySelectorAll('div#search .r>a:not([class])'); for (let link of resultLinks) { //LC20lb yWc32e iUh30 B6fmyf link.removeAttribute("ping"); link.querySelector('a>div>cite.iUh30').innerText = link.querySelector('a>.LC20lb').innerText; let div = document.createElement('span'); div.innerText = link.href; div.className = 'LC20lb'; link.querySelector('a>.LC20lb').parentNode.insertBefore(div, link.querySelector('a>.LC20lb').nextSibling); link.querySelector('a>.LC20lb').parentNode.removeChild(link.querySelector('a>.LC20lb')); } It was just a quick fix to get urls back, still needs fixing the cache/translation links etc, havent gotten around to making it look 100% like the old search page http://i.imgur.com/RoTJ5vG.png http://i.imgur.com/RoTJ5vG.png