i.pximg.net 403 Forbidden Fix

Fix Pixiv raw image 403

< Σχολιασμός για τον κώδικα i.pximg.net 403 Forbidden Fix

Αναφορά: Κακός - ο κώδικας δεν λειτουργεί

§
Δημοσιεύτηκε: 16/02/2019

Doesn't seem to work anymore.

I don't get any image when I go to a direct link, I really liked this script so check if you can do anything about it...

maple3142Δημιουργός
§
Δημοσιεύτηκε: 17/02/2019

Can you elaborate more? It works for me: https://streamable.com/zf9kc

§
Δημοσιεύτηκε: 12/03/2019

Script error: ReferenceError: "GM_xmlhttpRequest is not defined" Greasemonkey does not natively re-define this function since the overhaul update. There is a polyfill you can define, although it'd need testing.

maple3142Δημιουργός
§
Δημοσιεύτηκε: 12/03/2019

@MegaScience said: Script error: ReferenceError: "GM_xmlhttpRequest is not defined" Greasemonkey does not natively re-define this function since the overhaul update. There is a polyfill you can define, although it'd need testing.

Don't use Greasemonkey, because I don't like to use polyfill for a single obsolete script manager. Both Tampermonkey and Violentmonkey are well supported.

§
Δημοσιεύτηκε: 12/03/2019

I actually redid your script with fetch instead of GM_xmlhttpRequest and it works fine now: link. Code doesn't do what yours did 1:1, but I'm only leaving it here as an example anyway. It's likely users are on a version that supports at least some of this. Could change to Promise/Then/Catch chains instead, etc.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.