Redirects to high-res images on gallery sites, skipping past descriptions and comments
< Valutazione su Eza's Image Glutton
Thank you for the fix - I've been noticing this intermittently, assuming it was an async type of issue, maybe due to browser lag, with no easy fix. Seems like this change fixed it for me.
Sorry for the delay - I couldn't reproduce this, and I was putting off dealing with DeviantArt.
I've added your fix. Thank you for that and for the report.
And yeah, SankakuComplex is uncooperative and fragile.
Turns out that wasn't working for ViolentMonkey (because ViolentMonkey is always a problem). So now it uses querySelector to grab the same link, and avoids the HTML character reference / ampersand code altogether.
Parts of this code are a decade old, and it shows.
chan.sankakucomplex.com gives 403 errors.
The image url has 3 cases of '&' and the script only replaces the first one. Works if you use replaceAll() instead.