I have been developing a school project which involves creating a Chrome extension to streamline the Checkout process on a website. In my manifest.json file, I specified that a content.js file should run when it matches a specific URL.
"content_scripts": [
{
"matches": [
"https://www.solebox.com/de_DE/checkout?stage=payment*"
],
"js": ["payment.js"]
},
{
"matches": [
"https://www.solebox.com/de_DE/checkout?stage=placeOrder*"
],
"js": ["placeorder.js"]
As you can see in the link, there are various stages during checkout. However, from the "payment" stage to the "place order" stage, the page does not refresh. This means that the script may not detect the change in URL and as a result, the JavaScript cannot be executed. Is there a way for the Chrome extension to continuously monitor the URL?