Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Create stacking-rules.json
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyvab authored Nov 8, 2022
1 parent 29c9347 commit 46f6507
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions stacking-rules.json
Original file line number Diff line number Diff line change
@@ -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"]
}
}
]

0 comments on commit 46f6507

Please sign in to comment.