Block requests containing 'blocksub' (except main_frame)
Given the following rule:
{
"id": 1,
"condition": {
"urlFilter": "blocksub"
},
"action": {
"type": "block"
}
},
rule 1 will block this image (containing 'blocksub'):
rule 1 will not block this image (does not contain 'blocksub'):
Block main_frame requests containing 'blocktop'
Given the following rule:
{
"id": 2,
"condition": {
"urlFilter": "blocktop",
"resourceTypes": ["main_frame"]
},
"action": {
"type": "block"
}
},
rule 2 will not block this image (containing 'blocktop')

because "image" is not in the "resourceTypes" array.
Block all requests containing 'blockall'
Given the following rule:
{
"id": 3,
"condition": {
"urlFilter": "blockall",
"excludedResourceTypes": []
},
"action": {
"type": "block"
}
}
rule 3 will block this image (containing 'blockall'):