4 ms·
Sharing a small snippet I made to convert all links to web archives from 2007: document.querySelectorAll('.titlelink').forEach((link) => link.href = "https://w
by Zealotux 5y ago
Sharing a small snippet I made to convert all links to web archives from 2007:
document.querySelectorAll('.titlelink').forEach((link) => link.href = "https://web.archive.org/web/20070601000000*/ https://web.archive.org/web/20070601000000*/" + link.href);
- ficklepickle 5y agoIf you are entering this into the browser console, you can use $$() as shorthand for document.querySelectorAll(), with chromium-based browsers at least. As a bonus, it returns an array so you can map/filter.
- chrismorgan 5y agoFirefox dev tools also have $$ be document.querySelectorAll as Array.