From 3ba9ef05e79d37f694e521727e20eea0902d0c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Sat, 18 Nov 2017 01:08:55 +0100 Subject: [PATCH] Fix #11 + Add rule for facebook like/share button. + Edit redirection rule for reddit, no more loops :palm_tree: --- data/data.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/data.json b/data/data.json index 61faa9d..31b3ab0 100644 --- a/data/data.json +++ b/data/data.json @@ -154,7 +154,9 @@ "[a-zA-Z]*ref=[^\\/|\\?|&]*(\\/|&(amp;)?)?", "hc_location=[^\\/|\\?|&]*(\\/|&(amp;)?)?" ], - "exceptions": [], + "exceptions": [ + ".*(facebook\\.)\\w{2,}.*(\\/plugins\\/share_button.php).*" + ], "redirections": [] }, "imdb": { @@ -181,7 +183,7 @@ "rules": [], "exceptions": [], "redirections": [ - "url=([^\\/|\\?|&]*)" + "(https:\\/\\/||http:\\/\\/).*(out\\.reddit\\.)\\w{2,}\\/.*url=([^\\/|\\?|&]*)" ] } ,