Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: tests/data/expected_blocks.json

Issue 30053555: Issue 7471 - Add an API for working with blocks of filters (Closed) Base URL: https://hg.adblockplus.org/python-abp
Patch Set: Refine the API and add documentation Created May 9, 2019, 11:13 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 [
2 {
3 "foo": "bar",
4 "baz": "some_tricky?variable=with&funny=chars#and-stuff",
5 "description": "Example block 1\nAnother comment",
6 "filters": [
7 {
8 "text": "||block.ing/filter$domain=foo.com|~bar.com",
9 "selector": {
10 "type": "url-pattern",
11 "value": "||block.ing/filter"
12 },
13 "action": "block",
14 "options": {
15 "domain": {
16 "foo.com": true,
17 "bar.com": false
18 }
19 },
20 "type": "Filter"
21 },
22 {
23 "text": "white.list.ing#@#hiding.filter",
24 "selector": {
25 "type": "css",
26 "value": "hiding.filter"
27 },
28 "action": "show",
29 "options": {
30 "domain": {
31 "white.list.ing": true
32 }
33 },
34 "type": "Filter"
35 }
36 ]
37 },
38 {
39 "description": "Another block",
40 "filters": [
41 {
42 "text": "@@whateve.rs",
43 "selector": {
44 "type": "url-pattern",
45 "value": "whateve.rs"
46 },
47 "action": "allow",
48 "options": {},
49 "type": "Filter"
50 }
51 ]
52 }
53 ]
OLDNEW

Powered by Google App Engine
This is Rietveld