Anonymous ID: 52d679 Sept. 3, 2021, 1:11 p.m. No.14515625   🗄️.is 🔗kun   >>5630 >>5636 >>5654 >>5656 >>5676

>>14515527

>var n = Math.floor(Math.random() * 77777777777) + 1;

this is just adding a random querystring to the end of the image src so your browser won't use it's local cache.

 

This is working. Kudos to the codefag that figured it out. Doesn't work for .PNG, which tells me that Jim++ don't store all images in the same spot? Remonds me of the hover issue we used to see only with .PNG's.

Anonymous ID: 52d679 Sept. 3, 2021, 1:33 p.m. No.14515739   🗄️.is 🔗kun   >>5747 >>5755 >>5777 >>5812 >>5842

>>14515654

try this

/ Image Fix /{ 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 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(); });}

Anonymous ID: 52d679 Sept. 3, 2021, 1:34 p.m. No.14515747   🗄️.is 🔗kun   >>6013

>>14515739

weird

 

{

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 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();

});

}