lisonge / vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat
MIT License
1.31k stars 70 forks source link

`GM_webRequest` removed for now #64

Closed Malix-Labs closed 1 year ago

Malix-Labs commented 1 year ago

image

See https://github.com/Tampermonkey/tampermonkey/issues/1086#issuecomment-1408488243 leading to https://github.com/Tampermonkey/tampermonkey/issues/397

lisonge commented 1 year ago

GM_webRequest removed for now

emmm, where is the description of removed ?

Malix-Labs commented 1 year ago

What do you mean?

I just know that for now this method doesn't exist for Tampermonkey, but as you can see there:

See https://github.com/Tampermonkey/tampermonkey/issues/1086#issuecomment-1408488243 leading to https://github.com/Tampermonkey/tampermonkey/issues/397

They apparently mean to make it come back

lisonge commented 1 year ago

I add GM_webRequest to client because there is GM_webRequest at api:GM_webRequest

and it can be used in code

image


So what should I do ?

Malix-Labs commented 1 year ago

I add GM_webRequest to client because there is GM_webRequest at api:GM_webRequest

and it can be used in code

image


So what should I do ?

Ah that's weird. Do you think the in-editor error message is a false-positive and should be removed then, as the API function is working well? If yes, I'm going to open an issue in their repository

Malix-Labs commented 1 year ago

What happen when you remove the "grant" meta line in the code in your screenshot?

lisonge commented 1 year ago

What happen when you remove the "grant" meta line in the code in your screenshot?

image

lisonge commented 1 year ago

Do you think the in-editor error message is a false-positive and should be removed then, as the API function is working well?

I don't care about eslint, you can use /*eslint-disable */

image

Malix-Labs commented 1 year ago

Ye, then I think the error message is a bug. I will open an issue in their repository