I think I just got used to use imports and building tools and forgot about the problem of loading some script firsts and race conditions.
@rfindley Maybe another solution would be to provide a piece of code that checks for the existence of the framework and if it’s not there just load the script inserting it into the document? I admit I don’t know how userscript programs work and their limitations.
So yeah, I think in the end the best solution would be to force users to manually set the order of scripts if there’s no other cleaner workaround.
That’s actually (sort of) how I implemented it in my first draft, and there were several problems with it, mostly race conditions like you said. If several scripts happen to run before the Framework, they’d all try to load it, not being aware that the others were already trying to do so. Plus, if the framework is installed, but just not in sequence, then you’d end up with a third copy
Anyway, there were solutions, of course, but the code required to safely include the framework was just getting bigger and bigger… ugh!
On a side note, I’m going to see how tiny I can make a non-alert-based popup, with a redirect prompt instead of the automatic redirect. If I’m happy with the results, I’ll post it here as another alternative that client scripters can use.
… which reminds me. The alert-and-redirect actually is just client-script code, not Framework code. So scripters have the freedom to come up with nicer solutions and post them here
Update on the Safari issue I was having: I thought I had the latest version on my system at home, but it turns out I was mistaken. I updated Safari, and now all scripts are working. So for future reference, Safari 9 doesn’t support Open Framework, but Safari 11 does for now.
Its not working properly here. It loads fine when i first enter wanikani but when I return to the landing page after a review or a lesson the Open Framework dont load. I`m using Chrome.
What evidence are you looking at to determine whether the framework is running? What scripts are you using it for? Are you seeing any errors in the Javascript console? (press F12 and click on the Console tab)
Ahh… you need to click the ‘#’ column again to sort by ascending order (not descending). Then a Sort column will appear on the right, and you can then move it to be the #1 script (it’s currently the #8 script).
This evening, I’ll see if I can make that more clear in the instructions.
Hey, so I just got the notification to install open framework to use ultimate timeline, I’m using firefox with violentmonkey.
Installed it, dragged it to the top, but now the timeline doesn’t show up at all… i tried reinstalling the script but still doesn’t work.
Am i missing some steps?
The ultimate timeline script started redirecting me here today, even though it’s always worked fine. I’ll probably just disable it, since, ya know, I’d like to be able to get to the dashboard.
It’d be nice if it just opened a new tab instead of not letting you access the dashboard forever until you solve the issue.
Could you post a screen-capture of ViolentMonkey? Maybe I can spot some clues in the screen capture. Also, check the Javascript console for errors (press F12 and click the Console tab).
Have you followed the instructions in the top-post of the thread, specifically sorting the Framework to be in the #1 position?