Anonymous ID: 000000 Sept. 2, 2021, 2:01 p.m. No.88033   🗄️.is 🔗kun   >>8037

>>87938 /pb

>As a professional C# programmer i'm a bit embarrassed to ask this… But

>How do I merge the two?

>I tried pasting the image fix below the highlight script but still only the highlight script seems to work.

Should work with the highlight script. Saw your post picture. Looks like you're missing a setInterval timer. Stick what you've got in your pic in a function and call setInterval on that function with the delay specified (in milliseconds). That should do it, see below.

 

function RewriteMediaUrls(){ 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 imgs = link.querySelectorAll('img') imgs.forEach(i => i.src = href) link.href = href })}RewriteMediaUrls()var rewriteInterval = setInterval(RewriteMediaUrls, 5000)