Skip to content

Instantly share code, notes, and snippets.

@riocampos
Created September 26, 2015 13:59
Show Gist options
  • Save riocampos/e03353e5593f5a284a03 to your computer and use it in GitHub Desktop.
Save riocampos/e03353e5593f5a284a03 to your computer and use it in GitHub Desktop.
iOS content blocker app "1Blocker" sample filter: [css4] class start/end with 'ad' (case ignore)
[{"id":"6c45f0e0-749a-4fe0-8df2-082a0f1e9191","name":"css only","rules":[{"id":"6479b1f2-a406-49f5-8edb-e3e840610bfe","name":"css_name_start_with_ad","content":{"trigger":{"url-filter":".*","load-type":[]},"action":{"type":"css-display-none","selector":"[class^='ad' i]"}}},{"id":"639fb370-521b-4793-951d-a1c3962298ca","name":"css_name_end_with_ad","content":{"trigger":{"url-filter":".*","load-type":[]},"action":{"type":"css-display-none","selector":"[class$='ad' i]"}}}]}]
[
{
"id": "6c45f0e0-749a-4fe0-8df2-082a0f1e9191",
"name": "css only",
"rules": [
{
"id": "6479b1f2-a406-49f5-8edb-e3e840610bfe",
"name": "css_name_start_with_ad",
"content": {
"trigger": {
"url-filter": ".*",
"load-type": []
},
"action": {
"type": "css-display-none",
"selector": "[class^='ad' i]"
}
}
},
{
"id": "639fb370-521b-4793-951d-a1c3962298ca",
"name": "css_name_end_with_ad",
"content": {
"trigger": {
"url-filter": ".*",
"load-type": []
},
"action": {
"type": "css-display-none",
"selector": "[class$='ad' i]"
}
}
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment