Hello, I’m not sure if this is an issue or if I’m doing something wrong, but I’ve run into it with a couple of plugins now.
I’m working on plugins like the Wanikani mode, where I wanted to enter a context when I navigate to a specific page of a site, like /review. With WK, if Lipsurf is active already, it will start the review context when you click “start session”. But the WK site itself does a page load for those reviews.
For sites that don’t do a page load but instead rewrite the URL, is the match regex checked again or does it only check it on a page load? For instance here’s the snippet of plug in code:
This won’t get activated when I navigate from https://www.bunpro.jp/users/michiakig to https://www.bunpro.jp/study, instead I have to refresh the browser with Lipsurf on, and then the plug in will get activated.
I’m not sure if I’m doing something wrong or this is a known limitation. Thanks!
Sometimes even then the proper events aren’t fired from the page depending on how they change the URL internally. If these don’t work, you’ll need to inject a script that overrides js methods like history.pushStatehistory.popState.