Open piquark6046 opened 1 year ago
I don't think we should give userscript developers an ability to execute code inside our applications. The applications don't even have a javascript engine to run it, anyway.
@ameshkov discuss?
AFAIK userscripts that want to have persistent configuration usually implement some sort of a menu on the page that they are injected into, and store/load the values with GM_setValue
/GM_getValue
.
Agreed. but I think we can implement this entirely in the page context without involving CoreLibs.
As far as I understand, it’s still hanging in todo?
Description
Currently, AdGuard does not support
GM_registerMenuCommand
andGM_unregisterMenuCommand
that is required when an userscript developer wants to add its configuration feature, etc.Suggestion
Option button I think that placing the button here is better.
Screenshot
![Screenshot from 2022-11-25 13-37-30](https://user-images.githubusercontent.com/98787049/203997412-ad7255f9-fca3-4477-ba6f-568803579641.png)onClick
event must be executed only when any matched webpage is opened.Reference