Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Testing Safari Content Blocker on iMore.com
[
{
"action": {
"type": "block"
},
"trigger": {
"url-filter": ".*",
"resource-type": ["script"],
"load-type": ["third-party"],
"if-domain": ["*imore.com"]
}
},
{
"action": {
"type": "css-display-none",
"selector": "div.recent-posts"
},
"trigger": {
"url-filter": ".*",
"if-domain": ["*imore.com"]
}
},
{
"action": {
"type": "css-display-none",
"selector": "div.netshelter-ad-inner"
},
"trigger": {
"url-filter": ".*",
"if-domain": ["*imore.com"]
}
}
]
@CraftyDeano

This comment has been minimized.

Copy link
Owner Author

commented Jul 23, 2015

The syntax has changed slightly since Beta 4 of OSX/iOS has launched. The "if-domain" trigger is now quite explicit, so I have added the wildcard (*) to the start of the domain to pickup all subdomains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.