Skip to content

Instantly share code, notes, and snippets.

@rickgregory
Last active September 1, 2015 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickgregory/6bf7595b9791305b6675 to your computer and use it in GitHub Desktop.
Save rickgregory/6bf7595b9791305b6675 to your computer and use it in GitHub Desktop.
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"]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment