[ / / / / / / / / / / / / / ] [ dir / random / cow / doomer / femdom / fit / in / lewd / wx / x ][Options][ watchlist ]

/qresearch/ - Q Research

Research and discussion about Q's crumbs
You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
Archive
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

Welcome Page | Index | Archive | Poal Sub | Q Posts | Notables | Q Proofs
Q's Board: /projectdcomms/ | Legacy Boards: /CBTS/ /TheStorm/ /GreatAwakening/ | Politics News & Debate: /pnd/ | BO's Discord: The Den of Absolute Retards

[–]

d5f600 (1)  No.14522170[Watch Thread][Show All Posts]

Since there seem to be ongoing problems with getting images to display and since multiple different fixes have been put forward it seems to make sense that we have a place to collect any and all fixes for this problem.

So far I have come across the Hosts file fix. I will write up how to edit the hosts file and flush dns caches for the linux command line since that is what I use. If someone want's to write up the process for Windows/Mac/Android etc that would be great, if not I will get to it at some point.

The hosts fix (for me at least) doesn't seem to solve the whole issue however as I was having a problem with some (not all) images not loading that was not fixed by editing the hosts file. The fixes for this seem to be custom js in nature and as such should be used with caution. If you can't read and understand code you're probably better off not just plugging in any old js you find lying around that claims to fix the image loading problem. That said, I wll try and post js fixes as I find them that I have read through to ensure there is no malicious code, but really you shouldn't even be trusting my judgement on that or anyone else's but your own.

Please feel free to post any other fixes or workarounds that you find so that everyone can benefit.

____________________________
Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6866c1 (4)  No.14528662 >>14529174

Good work anon coming up with this thread.

Here's the JPEG Fix

Towards the top right of the screen, there is a link called options → CLICK

1) Look for </> User JS →CLICK

2) Underneath everything that is already written there, paste the following code:



{

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.replaceAll("media.","sys.")}?n=${n}`

var imgs = link.querySelectorAll('img')

imgs.forEach(i => i.src = href)

link.href = href
})

}

3) SAVE Custom Javascript

That should get your jpegs back.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

c0e2a6 (1)  No.14529174 >>14529727

>>14528662

that's an old version, it also adds a number to each image, which means no image is ever cached, which means way more traffic for 8kun.

The new one not only removes that, but also makes videos and catalog work again.

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6866c1 (4)  No.14529727 >>14529790

>>14529174

Can you please post the new one…?

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6866c1 (4)  No.14529790

>>14529727

I found this, but it doesn't seem to work for me.

(PB)

https://8kun.top/qresearch/res/14526374.html#q14527090

-heres the entire post--

Look back through the bread, a JS fix, several actually have been posted to fix the board content.

Use which ever one you will. DNS fuckery/hosts files are no longer a fix.

The JS anon uses:{

// 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;

});

}

$(window).on('scroll', function (e, post) {

loadListener();

});

}

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.

6866c1 (4)  No.14529815

(PB)

https://sys.8kun.top/qresearch/res/14526374.html#q14526476

>>14526476

Full HOSTS file:

-----

did something change with the hosts file? i had the images working and now they're not. my hosts file still has the following

94.103.81.80 media.8kun.top

94.103.94.73 media.8kun.top

109.234.38.4 media.8kun.top

195.2.92.96 media.8kun.top

94.103.82.74 media.8kun.top

195.2.93.193 media.8kun.top

193.178.169.19 media.8kun.top

109.234.38.4 softserve.8kun.top

195.2.92.96 softserve.8kun.top

94.103.81.80 softserve.8kun.top

193.178.169.19 softserve.8kun.top

195.2.93.193 softserve.8kun.top

94.103.94.73 softserve.8kun.top

94.103.82.74 softserve.8kun.top

185.165.190.88 sys.8kun.top

193.178.169.19 8kun.top

Disclaimer: this post and the subject matter and contents thereof - text, media, or otherwise - do not necessarily reflect the views of the 8kun administration.



[Return][Go to top][Catalog][Screencap][Nerve Center][Random][Update] ( Scroll to new posts) ( Auto) 5
5 replies | 0 images | 3 UIDs | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / random / cow / doomer / femdom / fit / in / lewd / wx / x ][ watchlist ]