w3c / webextensions

Charter and administrivia for the WebExtensions Community Group (WECG)
Other
576 stars 50 forks source link

userScripts API: re-order without re-registering everything #606

Open tophf opened 1 month ago

tophf commented 1 month ago

Currently if we want to register a new userscript to run first we need to re-register all existing userscripts. Many users have a lot of userscripts (50-100), some of the popular ones are larger than 1MB and may have hundreds of match patterns, so that seems wasteful, especially if the user wants to re-order multiple scripts in quick succession testing the result each time.

It'd be nice to be able to set the order explicitly e.g. by specifying before: 'id' in the registration options.

kiaraarose commented 1 month ago

Safari doesn't support the UserScripts API but we agree that it would be nice for developers to have a way to set some priority for these user scripts.