Post

Replies

Boosts

Views

Activity

Reply to declarativeNetRequest does not always work
THIS POST IS A DUPLICATE AND CAN BE DELETED (the original post was unlocked and I was finally able to reply to it). Furthermore, this issue is somewhat fixed (I can get them to work in Gmail) but I found a new issue: DNR doesn't match against anything in the location.hash on a URL. More details in the original post: https://developer.apple.com/forums/thread/706346
Topic: Safari & Web SubTopic: General Tags:
Nov ’23
Reply to declarativeNetRequest does not work in Gmail
Update after some more testing. Good news: I CAN now block images in Gmail. Bad news: I CAN NOT block images based on anything in the path after a "#" in Safari (where as I can in other browsers) So if this is the url for the image I want to block: https://ci3.googleusercontent.com/proxy/gHU4xG2VeSnDGYzSz5X#https://news.us13.list-manage.com/track/open.php?id=123 This rule WILL work: { "id": 1, "priority": 1, "action": { "type": "block" }, "condition": {"regexFilter": "gHU4xG2VeSnDGYzSz5X", "resourceTypes": [ "image" ] } }, This rule will NOT work: { "id": 1, "priority": 1, "action": { "type": "block" }, "condition": {"regexFilter": "track", "resourceTypes": [ "image" ] } },
Topic: Safari & Web SubTopic: General Tags:
Nov ’23
Reply to @@extension_id replacement in CSS file fails in Sequoia, Safari 18
This workaround did not work for content scripts as the relative URL is resolved relative to the website the script is running in. But this appears to be fixed now in Safari 18.3.1
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Apr ’25
Reply to declarativeNetRequest does not always work
THIS POST IS A DUPLICATE AND CAN BE DELETED (the original post was unlocked and I was finally able to reply to it). Furthermore, this issue is somewhat fixed (I can get them to work in Gmail) but I found a new issue: DNR doesn't match against anything in the location.hash on a URL. More details in the original post: https://developer.apple.com/forums/thread/706346
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to declarativeNetRequest does not work in Gmail
Update after some more testing. Good news: I CAN now block images in Gmail. Bad news: I CAN NOT block images based on anything in the path after a "#" in Safari (where as I can in other browsers) So if this is the url for the image I want to block: https://ci3.googleusercontent.com/proxy/gHU4xG2VeSnDGYzSz5X#https://news.us13.list-manage.com/track/open.php?id=123 This rule WILL work: { "id": 1, "priority": 1, "action": { "type": "block" }, "condition": {"regexFilter": "gHU4xG2VeSnDGYzSz5X", "resourceTypes": [ "image" ] } }, This rule will NOT work: { "id": 1, "priority": 1, "action": { "type": "block" }, "condition": {"regexFilter": "track", "resourceTypes": [ "image" ] } },
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to declarativeNetRequest does not work in Gmail
I filed a bug report in July 2022 and it hasn't been responded to. The feedback ID is FB10544296 P.S. This post was locked when the wwdc21-10131 tag was applied which disabled my ability to reply, comment, or update the post.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Unable to reply to a question to the forum
I posted a question and had an Apple employee reply and ask for more information. But I can't reply or comment on the post to provide that info. I've tried signing into another account and had the same problem. Here is the post: https://developer.apple.com/forums/thread/706346
Replies
Boosts
Views
Activity
Jul ’22
Reply to browser.storage.onChanged doesn't appear to work on Safari
UPDATE: I ended up filing a bug Apple via the Feedback Assistant and they eventually fixed the bug (in Jan 2022). This now works as expected: the content script can listen for changes to storage on an options page with browser.storage.onChanged.
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
May ’22