Anonymous ID: 8b1eb2 Sept. 4, 2021, 11:19 a.m. No.14520099   🗄️.is 🔗kun   >>0113 >>0163 >>0260 >>0699

Repost from last bread.

 

>>14519223

 

The image Fix

For any anon that wants to view images whether they’re .jpg; .jpeg or .png without having to refresh

Copy and paste the below script into your ‘User JS’ then ‘save custom Javascript’ in the ‘Options’ located in the upper right corner of your page

you’ll also be able to view mp4’s when you click on the area where the mp4 is posted

‘’’This does work!’’’

 

{

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

});

}

 

*Note: another anon wrote the script, I’m just a messenger. You’re Welcome!