I am trying to upgrade a Chrome extension to Manifest V3. Our current application makes use of webRequest and webRequestBlocking to modify the content-security-policy directives in order to inject resources from another application into a…
Consider the following example that simply add a header to all responses from example.com and www.google.com/maps. example.com is used to show that the code is correct and works well, and for the Google Maps page, a cached version is served that…
Am trying to migrate a toggle to manifest V3, this toggles between web and mobile view.
With new declarativeNetRequest am able to modify the header, but it does not reload page. Ideally after applying new mobile user agent, It supposed to reload and…
I'm trying to update my chrome extension from V2 to V3.
The part that doesn't seem to work right now is where I modify incoming headers
V2:
function modifyHeadersForUrls(urls: string[]) {
…
I have been working on a Chrome extension for shared internal use to facilitate local development; as such, I need to achieve two separate things on the same request:
Redirect an XHR from a public domain (specified by the user) to another domain…
I am writing a Chrome extension that modifies the user-agent header using declarativeNetRequest API. Interesting enough, the user-agent is only modified for requests within iframes as shown in the devtools. I must have missed/misunderstood…
I want to read the JSON returned by some XHR requests on a particular website. Is this possible with the new manifest version 3 for Chrome Extensions?
In that case, how does one accomplish it with declarativeNetRequest or similar?
We have an array of tab ids stored in chrome storage, using those I wanted to modify the user-agent of the First Document Fetch call on a webPage of those tabs.
i am using chrome.declarativeNetRequest API to dynamically update the rules with new Tab…
I am attempting to write a chrome extension (for personal use) to swap/replace images loaded by a webpage with alternate images. I'd had this working for some time using chrome.webRequest, but am attempting to bring it up-to-speed with manifest…
I had an extension which was using the parentFrameId property on onHeadersReceived with the webRequestBlocking permission to strip specific headers for all the requests coming from the iframes of a tab.
To achieve this, the condition was:…
I need to get the url of a chrome tab when it's navigated but before the user is redirected from a rule that is set using declarativeNetRequest.
At the moment the user can add a rule using context menu, it will be redirected to an internal extension…
I'm trying to avoid blocking mixed-content by upgrading requests scheme to https using the declarativeNetRequest API.
With the following basic rule:
{
condition: {
excludedResourceTypes:['ping']
},
action: {
…
I'm building an extension (MV3) that will make demoing data in apps easier (ie. pumping fake data into a chart to make it more realistic than typical fake demo data).
My current approach is to take a user-inputted endpoint (ie.…
In my chrome extension V3 I use chrome.declarativeNetRequest.updateSessionRules to modify response headers:
chrome.declarativeNetRequest.updateSessionRules({
addRules: [
{
id: 999,
priority: 1,
condition: {
…