Συζητήσεις » Ανάπτυξη

Is it possible to use "fetch()" in a script?

§
Δημοσιεύτηκε: 27/12/2021

I want to use "fetch()" in one script... But I'm afraid greasyfor might delete it because of the link. So is it possible to use "fetch()"?

§
Δημοσιεύτηκε: 27/12/2021

What's special about the link? Generally, links are not prohibited

§
Δημοσιεύτηκε: 27/12/2021

What's special about the link? Generally, links are not prohibited

https://sandbox.moomoo.io/serverData.js

§
Δημοσιεύτηκε: 27/12/2021

I just want to use my "fetch()" code to get the playerCount... I have already created the code myself, but I do not know if it is possible to use the "fetch()" itself. My friend said something about "NO CORS policy".

§
Δημοσιεύτηκε: 27/12/2021

NO CORS policy

That's another thing, not related to greasyfork

§
Δημοσιεύτηκε: 27/12/2021

NO CORS policy

That's another thing, not related to greasyfork

Then I can use "fetch()"?

§
Δημοσιεύτηκε: 27/12/2021

Sure

NotYouΣυντονιστής
§
Δημοσιεύτηκε: 08/02/2022

To be clear, Greasy Fork does not allow running scripts from unauthorized places. If the content is just data though (like JSON), then it's fine.

Hey Jason, you said data like JSON is allowed, but what about CSV? Is it ok to use?

JasonBarnabeΣυντονιστής
§
Δημοσιεύτηκε: 08/02/2022

CSV is allowed. Any data that's not code is allowed. (Don't try to have a CSV file with code embedded, for example.)

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

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