GreasyFork: download script button

If you have a script manager and you want to download some script without installing it, this script will help

< Σχολιασμός για τον κώδικα GreasyFork: download script button

Αναφορά: Εντάξει - ο κώδικας λειτουργεί αλλά έχει σφάλματα

§
Δημοσιεύτηκε: 18/10/2025

const response = await GM.xmlHttpRequest({...});

to

const response = await new Promise((resolve, reject) => {
...

KonfΔημιουργός
§
Δημοσιεύτηκε: 18/10/2025

I don't understand this. What's the purpose of the promise?

KonfΔημιουργός
§
Δημοσιεύτηκε: 19/10/2025

I guess you've meant that older implementations of the GM.xmlHttpRequest do not return a promise, so the script won't work. This should be fixed now

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

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