[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Greasemonkey script to fix image 404s

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 24
Thread images: 6

File: 1326495804001.jpg (43KB, 360x318px) Image search: [Google]
1326495804001.jpg
43KB, 360x318px
Tired of the 404s? It's because they're pointing to the wrong domain Use this Greasemonkey script to fix it:

http://pastebin.com/T9tPKtsg
>>
Tested it out with some images that weren't loading prior and it works great. Thanks OP
>>
Seems to be working so far. Thanks, OP.
>>
>those variable names
Thanks OP, works a charm
>>
I dont get 404'd when i open the images, they just dont load
>>
>>755996
>functions perfectly
>short code
>risible variable names
>cute op pic
10/10 op thanks
>>
>>756034
This will fix inline loading as well.
>>
File: 13.jpg (42KB, 403x447px) Image search: [Google]
13.jpg
42KB, 403x447px
cheers senpai, kek'd at the var names
>>
>>755996
Thanks.
>>
>>755996
This is important.
Did you make the script?
>>
>>756111
I did, yes. I'd never made one before so I thought I was terrible at it when it wasn't working, but then I realized it was because I was trying to replace 'src' instead of 'href' because I'm an idiot.
>>
>>756123
>I'd never made one before
Your little script is gonna spread until this issue is fixed, so congrats I guess.
>>
>>755996
holy shit man
>>
File: 1448857064442.jpg (16KB, 129x164px) Image search: [Google]
1448857064442.jpg
16KB, 129x164px
>>755996
Well, that seems to be working. Thanks anon.
>>
File: 1389129127252.jpg (259KB, 800x706px) Image search: [Google]
1389129127252.jpg
259KB, 800x706px
>>
>>755996
Cheers!
>>
File: 1460065492883.jpg (31KB, 442x400px) Image search: [Google]
1460065492883.jpg
31KB, 442x400px
>>755996
Thanks OP enjoy the attention you earned it

>Hiroshima...Nagasaki
>>
What was the problem? Did I miss it or did it only appear under certain conditions? Was it solved?
>>
>>756565
Just checked the same thread I tested the script on and it seems to have been fixed on 4chan's end.

Basically, some threads were directing image links to is.4chan.org instead of i.4cdn.org, for some reason. So thumbnails would display fine, but you'd get a 404 for clicking the image, either inline or in a new tab.

It was probably a misconfigured PHP setting, or maybe a new system for rolling out ads that went awry.

In any case, looks like you guys can disable/uninstall the script now.
>>
>>756565
Random image links were pointing at is.4chan.org instead of the usual i.4cdn.org
They seem to have fixed around 2 hours after this thread was posted.
>>
File: 1441439512468.jpg (41KB, 447x400px) Image search: [Google]
1441439512468.jpg
41KB, 447x400px
>hiroshima
>nagasaki
>>
>>755996
Thanks
>>
This is based regardless of whether the issue has been fixed or not.
>>
>>756971
Thanks!
Thread posts: 24
Thread images: 6


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.