[threads with dead images]IMGUR Hotlinks not working - how to still access resources

Avery

Sleeping Dinosaur
Restaff
Joined
Oct 13, 2012
Messages
3,836
Reaction score
26,225
First Language
German
Primarily Uses
N/A
I was not sure whether this is supposed to be a tutorial, but to paste it in into every relevant thread was too much and I still felt like it rather belongs to the resource section.

So what is the point:
Imgur has removed their hotlinks, and even though the images still exist on the site, they don't work where they were used via these.
This has lead to many people getting frustrated and while I get it, I would just recommend to kindly let the artists know and not pressure them too much about reuploading, since that is a MASSIVE task that can take many hours depending on the thread size. You are asking here for other people's free time for free just for your convenience.

Given that, there is no immediate need to reupload, the images are still accessible, you just have to jump through some hoops.

Let us use whtdragon's tiles as an example:

Obviously, the images are gone:
1684860273255.png

If you now right click on the element, you can "Inspect" the image:
1684860432550.png

Now you can access the link to the image:
1684860673548.png

What you want is the data-url:
1684860708231.png

Now you can for example copy the whole like into the editor to get that bit out:
1684860814637.png

1684860953181.png

There you go!
And while I know you have to put some work in, it is worth it and we talk about free things! ;3
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,479
Reaction score
10,887
First Language
English
Primarily Uses
RMMV
And please actually read the threads first. I've seen posts complaining that images are down and asking for reposts in threads that already had zipped archives available.

Just download the pack and look at it on your computer, it only takes a minute.
 

karusomine

Villager
Member
Joined
Mar 1, 2023
Messages
28
Reaction score
51
First Language
English
Primarily Uses
RMMZ
Thanks for the tutorial! Also just for information... If you want to change image hosting from imgur, I think imgbb is better than imgbox. If you search the forum for 'imgbox', a lot of the links are equally cooked as imgur links. Meanwhile all imgbb links are still good. Of course there's no guarantee what's gonna happen in the future, but for now just to be safe, I guess.
 

ATT_Turan

Forewarner of the Black Wind
Regular
Joined
Jul 2, 2014
Messages
12,479
Reaction score
10,887
First Language
English
Primarily Uses
RMMV
@karusomine I don't see a reason not to just attach the images to the posts using the forum functionality.

I suppose if you're active on multiple sites and want to cross-post them, that's a thing. But it's always been a thing over the years on the Internet that various sites try to discourage and break hotlinking. So this is the latest big kerfluffle, but it's always been risky.
 

karusomine

Villager
Member
Joined
Mar 1, 2023
Messages
28
Reaction score
51
First Language
English
Primarily Uses
RMMZ
@ATT_Turan I guess using image hosting site is nice because you're like making your own folder/gallery, and can freely share them by just using the links. Usually no limitation too (in size and dimension).

But yeah the first option to post image should be just use the insert image function.
 

TheoAllen

Self-proclaimed jack of all trades
Regular
Joined
Mar 16, 2012
Messages
7,530
Reaction score
11,935
First Language
Indonesian
Primarily Uses
N/A
And while I know you have to put some work in, it is worth it and we talk about free things! ;3
Why put some work if we can automate things ;)
Meet the console command!

The process is simple.
Press F12 to bring up the console command.
Paste this code in the console, run/press enter
JavaScript:
let domBBImages = Array.prototype.slice.call( document.getElementsByClassName("bbImage") )
domBBImages.forEach(function(dom) {
     if (dom.dataset.url && dom.dataset.url.includes("imgur")) {
            dom.src = dom.dataset.url
      }
})

And it works!
1684894045283.png

And if you don't want to do this for every page you visit in this forum, you can automate it with Tampermonkey.

How to automate this using Tampermonkey:
After installing the extension. Go to its configuration menu. Add new script
1684894246376.png

Add this
JavaScript:
// ==UserScript==
// @name         Imgur Hotlink Fixer (RPGMakerWeb)
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Forum proxy link broke imgur hotlink
// @author       TheoAllen
// @match        https://forums.rpgmakerweb.com/*
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let domBBImages = Array.prototype.slice.call( document.getElementsByClassName("bbImage") )
    domBBImages.forEach(function(dom) {
        if (dom.dataset.url && dom.dataset.url.includes("imgur")) {
            dom.src = dom.dataset.url
            }
    })

})();
Save, and don't forget to toggle it ON.

No more manual labor!
:XP1:

EDIT:
To clarify:
Imgur has removed their hotlinks, and even though the images still exist on the site, they don't work where they were used via these.
It wasn't Imgur that removed their hotlinks. It is the forum proxy link that broke their hotlink. Replacing the src attribute from the HTML tag to their hotlink works wonders.
 
Last edited:

TheoAllen

Self-proclaimed jack of all trades
Regular
Joined
Mar 16, 2012
Messages
7,530
Reaction score
11,935
First Language
Indonesian
Primarily Uses
N/A
To quote Avery, we talk about free things! :3
 

whtdragon

Resource Staff
Restaff
Joined
Dec 21, 2012
Messages
361
Reaction score
2,056
First Language
english
Primarily Uses
N/A
Hey just so ya'll know I'm testing out a new way to host the images, and I'm gonna try and update all my threads with it if things work out fine.
 

ShadowDragon

Realist
Regular
Joined
Oct 8, 2018
Messages
8,184
Reaction score
3,429
First Language
Dutch
Primarily Uses
RMMV
I didn't knew it, but it does work, thanks for the code :)
 

Latest Threads

Latest Profile Posts

*Goes away*
*Returns after a few days to see what's happening*
*Sees what's happening*
ErifB_2.pngLuminusActor_DMG_6.png
Sooooo close to picking a game idea for the jam. That's almost halfway done, right? :D
I have completed what is clearly the most important part of participating in the game jam: coming up with a name!
My shrink has me trying to limit 30 mins a day for each of my personal projects so I can have a healthier life. But lately the rpg making in particular has been hard to pull away from and I keep getting lost in it.

Forum statistics

Threads
136,572
Messages
1,267,703
Members
180,261
Latest member
Sero
Top