Cotton: Biden pulling biggest 'bait and switch' move in American politics
Sen. Tom Cotton, R-Ark., criticizes the Biden administration's handling of vetting Afghan refugees.
https://www.youtube.com/watch?v=VbEcZ1KUV44
Cotton: Biden pulling biggest 'bait and switch' move in American politics
Sen. Tom Cotton, R-Ark., criticizes the Biden administration's handling of vetting Afghan refugees.
https://www.youtube.com/watch?v=VbEcZ1KUV44
This works just as well, without adding extra load to the image server - what's with forcing image fetch from server? You'd only want to do that is there was a likleyhood of the image being updated/changing, like in a CMS driven site for example.
{ var links = Array.from(document.querySelectorAll('a')) var imageLinks = links.filter(l =/.media.8kun.top./ig.test(l.href)) imageLinks.forEach(link => { var pieces = link.href.split('/') var filename = pieces[pieces.length-1] var [hash, extension] = filename.split('.') var href = ${link.href.replace("media.","sys.")}
var imgs = link.querySelectorAll('img') imgs.forEach(i => i.src = href) link.href = href })}
The above does the same as the original without forcing your web browser to fetch image from server, if already cached on your device.
You don't…