[BUG] Script doesn't load on first time
domgom opened this issue · comments
Domingo Gomez commented
Sequence of actions:
- Load the matched page. Violent monkey icon is grayed out.
- Refresh the matched page. Violent monkey icon shows 1 active script.
Problem:
Script won't load unless I refresh the page.
Expected result:
Script loads all the time without requiring a page refresh.
Devtools console contents:
Environment:
- OS: MacOS 14.3.1 (23D60)
- Browser: Firefox 124.0
- Violentmonkey Version: 2.18.0
tophf commented
I can't reproduce the problem and this is the only such report, so you'll have to provide more info. My only guess so far is that you navigate a modern SPA site which reuses the same page and just fakes the URL change.
Domingo Gomez commented
I realised
https://mydomain.com/start/#/*
didn't work and
https://mydomain.com/start/*
did work.
Thanks.
tophf commented
Yep, those are SPA routes. Maybe I'll add a warning for such matches in the editor...