Questions tagged [chrome-declarativenetrequest]

chrome.declarativeNetRequest API for Chrome browser extensions

Documentation: https://developer.chrome.com/extensions/declarativeNetRequest/

48 questions
0
votes
1 answer

How to block web request but stay on page that initiated navigation w/ a Chrome extension (mv3)

I am trying to make a very simple Manifest v3 chrome extension that blocks an "automatic redirect" on a website. I like to use an overseas online merchant ("foo.com") but when you click into a product's details, it sends me to sso.foo.com to login…
empire29
  • 3,729
  • 6
  • 45
  • 71
0
votes
0 answers

Make Chrome extension not work in a specific URL

I have this manifest.json { "name": "Redirect Example", "description": "Help with redirection errors!", "version": "1.0", "manifest_version": 3, "background": { "service_worker": "background.js" }, "permissions": [ …
0
votes
1 answer

Convert JavaScript array data to json file

So I have this array with different links const urls = ['myurl.com', 'localhost.com'... etc] In the for loop I want to create an object like so, it should basically create a new object for every URL, and then pass the looped URL to the userUrl…
1 2 3
4