Anonymous ID: da361d Sept. 4, 2021, 7:06 p.m. No.14522573   ๐Ÿ—„๏ธ.is ๐Ÿ”—kun   >>2583 >>2596 >>2751

>>14522542

 

Just put this code in options (upper right corner of this page), user js โ€ฆthen click save javascript. โ€ฆIt fixxes shit

 

{

 

var updateLinks = function() {

 

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 href = ${link.href.replaceAll("media.","sys.")}?n=${n};/

 

var imgs = link.querySelectorAll('img');

 

imgs.forEach(i =i.src = href);

 

link.href = href;

 

});

 

};

 

updateLinks();

 

// allow to work with auto-reload.js, etc.

 

$(document).on('new_post', function (e, post) {

 

updateLinks();

 

});

 

}