<this question previously posted to StackOverflow<http://stackoverflow.com/questions/10456392/greasemonkey-script-only-runs-when-page-is-reloaded> >
I have a script to add some links to a changesets page in Rally<http://www.rallydev.com/>. The script works fine, but *only* when I reload the page. If I just navigate (via links, forward/back buttons, etc.) to a matched page, the script does not run, but it is listed in the Greasemonkey menu, with a checkmark next to it. So it *seems* like the matching is working fine, but for whatever reason the page is not firing the DOMContentLoaded event when I navigate to the page. I tried @run-at document-start just for kicks, and it made no difference. I'm not sure how to either (a) figure out what's going on, or (b) fix this. Here is the @include rule, which seems to be working fine: > include /^https://.*\.rallydev\.com/.*/changesets$/ And here is a URL that I'm testing with: > > https://rally1.rallydev.com/#/4745909548/detail/userstory/6138899084/changesets I wonder if the hash in the URL is causing a problem somehow, but I can't understand why it would work only on a reload. Any thoughts? Thanks, Neil -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To view this discussion on the web visit https://groups.google.com/d/msg/greasemonkey-users/-/fBB_haNojzcJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
