Anonymous ID: 597387 Sept. 4, 2021, 5:14 p.m. No.14521777   🗄️.is 🔗kun   >>1798 >>1832 >>1890 >>1905 >>2032

>>14521698

==Baker, this load pics without a refresh, updated JS, just paste into options, click js, paste

 

{

 

var loadListener = function() {

 

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;

 

})

 

}

 

$(window).on('scroll', function (e, post) {

 

loadListener();

 

});

 

}