Anonymous ID: 44b421 Sept. 5, 2021, 1:27 p.m. No.14526488   ๐Ÿ—„๏ธ.is ๐Ÿ”—kun   >>6499 >>6503 >>6521 >>6533 >>6558

>>14526476

A great Anon dropped this user js last night. Hit options, then copy paste it into the user js section:

 

{

 

// media fixer version 9/5/2021

 

// for videos (and possibly others) you may have to scroll a tiny bit

 

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;

 

});

 

// fix videos

 

links = Array.from(document.querySelectorAll('video'))

 

var videoLinks = links.filter(l =/.media.8kun.top./ig.test(l.src))

 

videoLinks.forEach(link ={

 

var href = ${link.src.replace("media.","sys.")}

 

link.src = href;

 

});

 

// images in catalog do not have a href

 

links = Array.from(document.querySelectorAll('img'))

 

var imgLinks = links.filter(l =/.media.8kun.top./ig.test(l.src))

 

imgLinks.forEach(link ={

 

var href = ${link.src.replace("media.","sys.")}

 

link.src = href;

 

});

 

}

Anonymous ID: 44b421 Sept. 5, 2021, 1:50 p.m. No.14526573   ๐Ÿ—„๏ธ.is ๐Ÿ”—kun   >>6584

>>14526558

Well, I don't write code personally, I can barely write a shell script, but I know enough motherfucking English to know that there's nothing in the JS posted by Anon that will fuck up my computer.

If you have zero such knowledge I suggest you DON'T USE IT! Simple, huh?

Anonymous ID: 44b421 Sept. 5, 2021, 2:26 p.m. No.14526677   ๐Ÿ—„๏ธ.is ๐Ÿ”—kun   >>6693

>worried about imageboard javascripts made by frens

>still uses the Bill Gates OS

Good luck, guys!

<https://www.pcworld.com/article/2974057/how-to-turn-off-windows-10s-keylogger-yes-it-still-has-one.html