From 46f6507719192e0a09d59de75bd16244ac1cada8 Mon Sep 17 00:00:00 2001 From: Vaibhav Nigam Date: Tue, 8 Nov 2022 18:41:07 +0530 Subject: [PATCH] Create stacking-rules.json --- stacking-rules.json | 57 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 stacking-rules.json diff --git a/stacking-rules.json b/stacking-rules.json new file mode 100644 index 0000000..f6a36e3 --- /dev/null +++ b/stacking-rules.json @@ -0,0 +1,57 @@ +[ + { + "id": 1, + "priority": 1, + "action": { + "type": "redirect", + "redirect": { + "transform": { + "queryTransform": { + "addOrReplaceParams": [ + { + "key": "__marker__", + "value": "xyz" + } + ] + } + } + } + }, + "condition": { + "urlFilter": "|https://example.com/?a=1|", + "resourceTypes": ["main_frame"] + } + }, + { + "id": 2, + "priority": 2, + "action": { + "type": "redirect", + "redirect": { + "regexSubstitution": "\\1a=2\\2" + } + }, + "condition": { + "regexFilter": "(.*)a=1(.*)", + "resourceTypes": ["main_frame"] + } + }, + { + "id": 3, + "priority": 3, + "action": { + "type": "redirect", + "redirect": { + "transform": { + "queryTransform": { + "removeParams": ["__marker__"] + } + } + } + }, + "condition": { + "regexFilter": ".*__marker__=xyz.*", + "resourceTypes": ["main_frame"] + } + } +]