I'm trying to write a Chrome extension that automatically updates the search query section of the URL for search engine requests.
I would like my extension to read search engine requests using onBeforeRequest
and create a new URL with my updates. That new URL should then become a dynamic rule which is followed by the browser.
However, declarativeNetRequest
's updateDynamicRules
doesn't update the rule fast enough to redirect the request.
How can I either speed up the dynamic rule, or slow down the request?