I am writing an extension for a particular website (which I do not own), whose urls only vary after a /#/.
Example: starting from the url
.../#/PF/charts/patients/419d3081-5e20-4347-a852-52b2c333ce85/summary
clicking the "timeline" link leads to the next url
.../#/PF/charts/patients/419d3081-5e20-4347-a852-52b2c333ce85/timeline/encounter
...but when trying to match the url to load my content script, everything from # and beyond is not included in the matching, so it thinks these are the same page. Also, looking at the console reveals that it doesn't even see any new page loads, despite the fact that I am clicking links, the entire page's content changes, and the url after the /#/ differs.
How can I get my contentscript.js to run only where I need it if the usual tools (setting "content_scripts" within the manifest) won't work? Or, can I make the url after the /#/ visible somehow?
Any thrifty solution would be appreciated!