T S
unread,Sep 14, 2023, 12:31:56 PM9/14/23Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium Extensions, Patrick Kettner, Chromium Extensions, T S
I looked around for other sites that can't be blocked. Gmail is blockable with *
mail.google*, but
chrome.google.com is not blocked by *
chrome.google*. That feels like it would point to a chromeos specific detail.
Including code verbatim is going to be a bit obtuse, but ultimately this is a call like
chrome.declarativeNetRequest.updateDynamicRules({
addRules:[
{
id: someGetNextIdFunction(),
priority:1,
action: { type: "block" },
condition: { resourceTypes: [ "main_frame" ] },
urlFilter: <pattern>
}
]
});
(In addition to making sure there are no unwanted rules lying around either)
Maybe there's some interaction with main_frame going on?