Good day everyone! I decided to try making an extension for Chrome for the first time and I have this idea but I don't know how to start. I hope you'd point me to the right direction.
I want to detect if a certain URL is opened then change the value of one of its query strings. For example:
- I open the page http://downloadpage.url/?page=info&id=123456
- The extension will detect this and change the query string "page" value from "info" to "download" and continue opening the page with the new values.
How do I do this? I think the permissions needed would be WebRequest and WebRequestBlocking but I'm not sure. I tried the steps here: Detect if URL is opened - Chrome extension but it doesn't seem to work even after changing background_page to background to account for my manifest's version (my Chrome version is 21.0.1180.89). I was hoping I could just modify the code there but unfortunately it didn't work for me and now I'm lost.