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!