Anonymous ID: 000000 Sept. 1, 2021, 11:28 p.m. No.87839   🗄️.is 🔗kun   >>7850 >>7872 >>7902 >>7932 >>7950 >>7963

Heads up

BAKER

Bread number is off-by-one. Should be #558.

 

IMAGE HACK

Finding that some board images can loaded from sys.8kun.top. The toy javascript below rewrites all anchors from media.8kun.top to sys.8kun.top, and adds a cache-busting random integer to the querystring, as proof of concept.

 

Specifically it appears .jpg files can still be served from sys.8kun.top. Not sure why, though I seem to remember CM talking about some cache service before the move to 8kun... best guess is that sys is fetching the images from that in-memory cache.

 

Try it yourself:

https://media.8kun.top/file_store/4d4f3b67da7edeffaaf58f7faff873b4d76bc134716d3e69dfd74c58d1f52cfd.jpg?n=30470285174

-vs-

https://sys.8kun.top/file_store/4d4f3b67da7edeffaaf58f7faff873b4d76bc134716d3e69dfd74c58d1f52cfd.jpg?n=30470285174

 

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 href = ${link.href.replace("media.","sys.")}?n=${n} var imgs = link.querySelectorAll('img') imgs.forEach(i => i.src = href) link.href = href })}RewriteMediaUrls()var rewriteInterval = setInterval(RewriteMediaUrls, 5000)

Anonymous ID: 000000 Sept. 2, 2021, 12:32 a.m. No.87851   🗄️.is 🔗kun   >>7854 >>7872 >>7902 >>7932 >>7950 >>7963

>>87850

>will fix, tx.

np 👍

 

>tried loading a jpg using sys.8kun.top as mod

>cannot view it, tho.

>might be able to view jpg images already posted?

To reload the jpg in the same bread the 'src' attribute of the img tag needs to be modified. The toy javascript replaces 'media' with 'sys' and appends a random querystring to bust the cache and force the img to reload. The link below should bring up the jpg you referenced in >>87849 (offbread)

 

http://sys.8kun.top/file_store/834d5b052bb29c635bd89b34922059e21df8e498c73eb1aff7a305d73ef65b1c.jpg?n=12345

Anonymous ID: 000000 Sept. 2, 2021, 12:53 a.m. No.87859   🗄️.is 🔗kun   >>7860 >>7872 >>7902 >>7932 >>7950 >>7963

>>87854

>are u inserting the javascript in the options menu?

Correct. Inserting js via the options menu.

>>87855

Looking good fren, nice shades kek. Pic received.

 

From what I've been able to gather it only works with .jpg and .jpeg. Gifs are broken. Supporting .jpg thumbnails and fixing mp4 embedded urls would require more code. Just wanted to get something out there for anons to chew on.

Anonymous ID: 000000 Sept. 2, 2021, 1:02 a.m. No.87861   🗄️.is 🔗kun   >>7864 >>7872 >>7878 >>7902 >>7932 >>7950 >>7963

>>87860

>>>/qresearch/14507629

Check out this advice from qr. Seems there's more that can be done here to fix .png and also .gif

 

> use the download link for the image, and as well as changing the host from media to sys, also change the last .png to .jpg

>ie

>python image.py https://sys.8kun.top/file_dl/f35298c815d2087b2d7f54e99e364ba972972bbe7db4688ec0896629ac318c15.png/f35298c815d2087b2d7f54e99e364ba972972bbe7db4688ec0896629ac318c15.jpg

>You can also do the same with .gifs to get some sort of still from the gif.

 

from your >>87858 post:

https://sys.8kun.top/file_store/2526cf798494375780a682450eeea8b968475e323b47dfcec87ea3186a2cb3da.gif/2526cf798494375780a682450eeea8b968475e323b47dfcec87ea3186a2cb3da.jpg?n=21119980021

Anonymous ID: 000000 Sept. 2, 2021, 1:15 a.m. No.87864   🗄️.is 🔗kun   >>7866 >>7867 >>7872 >>7874 >>7878 >>7879 >>7891 >>7892 >>7898 >>7899 >>7902 >>7906 >>7908 >>7913 >>7932 >>7938 >>7950 >>7960 >>7963

>>87861

>>87860

Updated javascript, fixes .jpg .jpeg .png and .gif. Let me know if it does/doesn't work for you. Feel free to spread far and wide and enhance.

 

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)