diff options
| author | Hygna <hygna@proton.me> | 2022-10-21 20:59:38 +0100 |
|---|---|---|
| committer | Hygna <hygna@proton.me> | 2022-10-21 20:59:38 +0100 |
| commit | d9ca6dee47ffdcb531fe52b842d1247f9cb3636b (patch) | |
| tree | 4d33e682f86cb90d67763f48c73f2726fac6cc4e /src | |
| parent | Fixed redirect toggles set to false being reset (diff) | |
| download | libredirect-d9ca6dee47ffdcb531fe52b842d1247f9cb3636b.zip | |
Made instragram main page redirect to avoid confusion, removed unnecessary groups from regex
Diffstat (limited to 'src')
| -rw-r--r-- | src/config/config.json | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/config/config.json b/src/config/config.json index d9463206..13b069c1 100644 --- a/src/config/config.json +++ b/src/config/config.json @@ -87,12 +87,13 @@ }
},
"targets": [
- "^https?:\\/{2}(?:www\\.|m\\.|)youtube.com(\\/|$)(?!(?:iframe_api\\/)|(?:redirect\\/))",
+ "^https?:\\/{2}(?:www\\.|m\\.|)youtube.com(\\/|$)(?!iframe_api\\/|redirect\\/)",
"^https?:\\/{2}img\\.youtube.com\\/vi\\/.*\\/..*",
"^https?:\\/{2}(?:i|s)\\.ytimg.com\\/vi\\/.*\\/..*",
"^https?:\\/{2}(?:www\\.|)youtube.com\\/watch?v=..*",
"^https?:\\/{2}youtu\\.be\\/..*",
- "^https?:\\/{2}(?:www\\.|)(youtube|youtube-nocookie)\\.com\\/embed\\/..*"
+ "^https?:\\/{2}(?:www\\.|)(youtube|youtube-nocookie)\\.com\\/embed\\/..*",
+ "^https?:\\/{2}redirect\\.invidious\\.io"
],
"name": "Youtube",
"options": {
@@ -190,7 +191,7 @@ "instanceList": true
}
},
- "targets": ["^https?:\\/{2}(www\\.)?instagram\\.com\\/p\\/"],
+ "targets": ["^https?:\\/{2}(www\\.)?instagram\\.com\\/?(p\\/|$)"],
"name": "Instagram",
"options": {
"enabled": true
@@ -252,7 +253,7 @@ "instanceList": true
}
},
- "targets": ["^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.|)reddit\\.com(?=(\\/u(ser)?\\/)|(\\/r\\/)|(\\/?$))", "^https?:\\/{2}(i\\.|preview\\.)redd\\.it"],
+ "targets": ["^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.|)reddit\\.com(?=\\/u(ser)?\\/|\\/r\\/|\\/?$)", "^https?:\\/{2}(i\\.|preview\\.)redd\\.it"],
"name": "Reddit",
"options": {
"enabled": true,
@@ -395,7 +396,7 @@ "instanceList": true
}
},
- "targets": ["^https?:\\/{2}(?:[a-zA-Z0-9-]+\\.)?fandom\\.com(?=(?:\\/wiki)|(?:\\/?$))"],
+ "targets": ["^https?:\\/{2}(?:[a-zA-Z0-9-]+\\.)?fandom\\.com(?=\\/wiki|\\/?$)"],
"name": "Fandom",
"options": {
"enabled": true
|
