|
6 | 6 | "exceptions": [],
|
7 | 7 | "settings": {
|
8 | 8 | "scriptlets": [
|
9 |
| - { |
10 |
| - "name": "trustedSetAttr", |
11 |
| - "attrs": { |
12 |
| - "selector": "a", |
13 |
| - "attr": "href", |
14 |
| - "value": "#" |
15 |
| - } |
16 |
| - }, |
17 |
| - { |
18 |
| - "name": "setCookie", |
19 |
| - "attrs": { |
20 |
| - "domain": "example.com", |
21 |
| - "name": "test", |
22 |
| - "value": "accepted" |
23 |
| - } |
24 |
| - }, |
25 |
| - { |
26 |
| - "name": "removeCookie", |
27 |
| - "attrs": { |
28 |
| - "domain": "example.com", |
29 |
| - "match": "bloop" |
30 |
| - } |
31 |
| - }, |
32 | 9 | {
|
33 | 10 | "name": "setConstant",
|
34 | 11 | "attrs": {
|
35 | 12 | "property": "test",
|
36 | 13 | "value": "no"
|
37 | 14 | }
|
38 | 15 | },
|
39 |
| - { |
40 |
| - "name": "trustedReplaceNodeText", |
41 |
| - "attrs": { |
42 |
| - "nodeName": "a", |
43 |
| - "textMatch": "More information...", |
44 |
| - "pattern": "...", |
45 |
| - "replacement": "!", |
46 |
| - "extraArgs": ["verbose"] |
47 |
| - } |
48 |
| - }, |
49 | 16 | {
|
50 | 17 | "name": "abortCurrentInlineScript",
|
51 | 18 | "attrs": {
|
|
69 | 36 | "conditionalChanges": [
|
70 | 37 | {
|
71 | 38 | "condition": {
|
72 |
| - "type": "url", |
73 |
| - "url": { |
74 |
| - "match": "xnxx.com" |
| 39 | + "domain": "example.com" |
| 40 | + }, |
| 41 | + "patchSettings": [ |
| 42 | + { |
| 43 | + "op": "add", |
| 44 | + "path": "/scriptlets/-", |
| 45 | + "value": { |
| 46 | + "name": "trustedReplaceNodeText", |
| 47 | + "attrs": { |
| 48 | + "nodeName": "a", |
| 49 | + "textMatch": "More information...", |
| 50 | + "pattern": "...", |
| 51 | + "replacement": "!", |
| 52 | + "extraArgs": ["verbose"] |
| 53 | + } |
| 54 | + } |
| 55 | + }, |
| 56 | + { |
| 57 | + "op": "add", |
| 58 | + "path": "/scriptlets/-", |
| 59 | + "value": { |
| 60 | + "name": "trustedSetAttr", |
| 61 | + "attrs": { |
| 62 | + "selector": "a", |
| 63 | + "attr": "href", |
| 64 | + "value": "#" |
| 65 | + } |
| 66 | + } |
| 67 | + }, |
| 68 | + { |
| 69 | + "op": "add", |
| 70 | + "path": "/scriptlets/-", |
| 71 | + "value": { |
| 72 | + "name": "setCookie", |
| 73 | + "attrs": { |
| 74 | + "domain": "example.com", |
| 75 | + "name": "test", |
| 76 | + "value": "accepted" |
| 77 | + } |
| 78 | + } |
| 79 | + }, |
| 80 | + { |
| 81 | + "op": "add", |
| 82 | + "path": "/scriptlets/-", |
| 83 | + "value": { |
| 84 | + "name": "removeCookie", |
| 85 | + "attrs": { |
| 86 | + "domain": "example.com", |
| 87 | + "match": "bloop" |
| 88 | + } |
| 89 | + } |
75 | 90 | }
|
| 91 | + ] |
| 92 | + }, |
| 93 | + { |
| 94 | + "condition": { |
| 95 | + "domain": "xnxx.com" |
76 | 96 | },
|
77 |
| - "changes": [ |
| 97 | + "patchSettings": [ |
78 | 98 | {
|
79 | 99 | "op": "add",
|
80 | 100 | "path": "/scriptlets/-",
|
|
0 commit comments