>>88679
>noice change from seizure provoking gifs of aei
they were like dat, a few not and dasting talent
like mime near to the heartbeat <3 ~share~the~rhythm~ or dizzyness
>>88681
>why would I stick that in
>aksin for a fren
>and exactly where?
window.addEventListener("scroll", LoadListener, false);
function LoadListener() {
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.pathname.split('/')
var filename = pieces[pieces.length-1]
var [hash, extension] = filename.split('.')
switch (extension) {
case "mp3":
case "png":
case "gif":
var href = ${link.href.replace("media.","sys.")}/${hash}.jpg
break;
case 'php':
if (hash == 'player') {
// special handling for video thumbnail
var videoplayer = link.search.match(/media.8kun.top\/file_store\/(\w{64})./i)
if (videoplayer) {
var href = "https://sys.8kun.top/file_store/thumb/"+videoplayer[1]+".jpg";
} else {
var href = link.url;
}
}
break;
default:
var href = ${link.href.replace("media.","sys.")}
break;
}
var imgs = link.querySelectorAll('img')
imgs.forEach(i =i.src = href)
link.href = href;
})
}
LoadListener()
var rewriteInterval = setInterval(LoadListener, 5000)
the orig:
function RewriteMediaUrls()
{
var links = Array.from(document.querySelectorAll('a'))
var imageLinks = links.filter(l =/.media.8kun.top./ig.test(l.href))
imageLinks.forEach(link ={
var n = Math.floor(Math.random() * 77777777777) + 1
var pieces = link.href.split('/')
var filename = pieces[pieces.length-1]
var [hash, extension] = filename.split('.')
var href = ${link.href.replace("media.","sys.")}/${hash}.jpg?n=${n}
var imgs = link.querySelectorAll('img')
imgs.forEach(i =i.src = href)
link.href = href
})
}
RewriteMediaUrls()
var rewriteInterval = setInterval(RewriteMediaUrls, 5000)