improve ruleset unmarshalling behavior if there isnt a top level rule key

This commit is contained in:
Kevin Pham
2023-12-09 08:37:23 -06:00
parent 27c3892b0b
commit 22533dc739
6 changed files with 58 additions and 6 deletions

View File

@@ -15,3 +15,19 @@ rules:
requestmodifications:
- name: ForwardRequestHeaders
params: []
- domains:
- quantamagzine.org
responsemodifications:
- name: BlockElementRemoval
params:
- "#postContent"
- domains:
- techcrunch.com
responsemodifications:
- name: ModifyIncomingScriptsWithRegex
params:
- "window\\.location"
- |
{origin: "techcrunch.com"}