quoid / userscripts

An open-source userscript manager for Safari
https://quoid.github.io/userscripts/
GNU General Public License v3.0
3.29k stars 187 forks source link

New context menu architecture design #453

Open ACTCD opened 1 year ago

ACTCD commented 1 year ago

The current @run-at content-menu is an undocumented design.

It is currently registered with all contexts and only uses a limited browser.menus.ACTION_MENU_TOP_LEVEL_LIMIT. It leads to lack of scalability, and less suitable use cases.

The top level menu should be reserved more for the functionality of the extension itself. Most registry items generated by user script should use the secondary menu.

Also, we should register different usage scenarios to different contexts, not to all contexts. Registration timing and persistence should also be considerations.

Note that the context menu should not be used as a direct replacement for GM.registerMenuCommand, it should be reimplemented in popup. Ref:#230

hippogryphriders commented 3 months ago

I have been using userscripts to work on projects but my developer device was stolen. I've veered off the track. Where should is a good starting point for me to get back on track? I'm interested in making extensions, scripts and applications. Are there mobile packagers or bundles for scripts via Android or ios?