New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The user should be able to control script execution order #2679
Comments
This is indeed a feature of 3.x missing from 4.x. I'm definitely not going to promise any particular feature/UI, but being able to have two scripts installed that must run in a particular order would be good. |
What if in the script source we had a |
Unlike UNIX runlevels, for which there's sort of a natural order, the order of execution for scripts seems more arbitrary. I think it should be up to the user. A default priority that comes from a tag in the script isn't a bad idea, but there needs to be a facility for overriding the order, as there has been in previous versions of GM. |
I do agree with that, but we could edit the runlevel/priority of scrips from the source if need be; i assume that would be easier to implement, at which point a ui could be built around it |
Vote for this too. Some of my scripts need to be run in particular order and break if run not in their time. |
IMHO a runlevel is not what we need here. |
This is not (strictly) a property of the script itself, so it should not be a header |
Will this feature still be a thing some day? I've been missing it since 4.x came out, and had to do some poor workarounds in my scripts to be executed in the right order for the time being. |
What was the workaround, and why was it poor? |
I remember creating an invisible div with one script, and setting a timer in the other, which was to check whether the div existed yet. Or was that stupid? I don't think one can set global variables with Greasemonkey and have them be accessible by other scripts? And even that would require setting a timer, wouldn't it? |
Why close as "completed"? Shouldn't it be "not planned"? |
Bulk operations (check multiple from issue search page) only give one "closed". Which apparently assumes completed. Oh well. |
"Execution order" sorting is the feature I miss the most from the legacy full-tab "manage" dialog.
Currently (in GM 4.0), as it seems, the scripts are executed as they are listed in the popup, i.e. in alphabetical order.
With this sorting no longer available, there's no quick way to resolve userscript conflicts anymore.
For reference, I quote from the (now removed) 'Script order' wiki page :
The text was updated successfully, but these errors were encountered: