79279246

Date: 2024-12-13 18:26:39
Score: 1
Natty:
Report link

You should be able to use

[
  {
    "id": 1,
    "priority": 1,
    "action": {
      "type": "redirect",
      "redirect": {
        "url": "https://stackoverflow.com/questions"
      }
    },
    "condition": {
      "urlFilter": "https://stackoverflow.com/|",
      "resourceTypes": ["main_frame"]
    }
  }
]

since a | dictates that no more characters may come after it.

See: chrome.declarativeNetRequest - URL filter syntax - Chrome Extension API

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user1280483