From 00c1673ef206b4c552a54629131fb092106a43f2 Mon Sep 17 00:00:00 2001 From: PRO-2684 <54608551+PRO-2684@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:40:29 +0800 Subject: [PATCH] rules: Fixed `cn.bing.com/search` rule; Added `git.io` & [`mandrillapp.com/track/click`](https://github.com/jamesramsay/dotfiles/blob/08ba4a1ee826917242286f0e44f6e028badf1d4f/finicky/decode.js#L44) --- shortener.json | 7 +++++++ tracking.json | 13 ++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/shortener.json b/shortener.json index e24cd60..40a4a1f 100644 --- a/shortener.json +++ b/shortener.json @@ -30,6 +30,13 @@ "author": "PRO-2684" } }, + "git.io/": { + "/\\.+": { + "description": "GitHub 短链", + "mode": "redirect", + "author": "PRO-2684" + } + }, "link.logonews.cn/": { "/\\w+": { "description": "标志情报局短链", diff --git a/tracking.json b/tracking.json index d8386a1..760deb5 100644 --- a/tracking.json +++ b/tracking.json @@ -57,7 +57,8 @@ "q", "filters", "ensearch", - "first" + "first", + "ubiroff" ], "author": "PRO-2684" }, @@ -146,6 +147,16 @@ "author": "青墨" } }, + "mandrillapp.com/": { + "track/": { + "click": { + "description": "Mandrill", + "mode": "lambda", + "lambda": "const b64 = url.searchParams.get('p'); const bytes = Uint8Array.from(atob(b64), (m) => m.codePointAt(0)); const payload = JSON.parse(new TextDecoder().decode(bytes)); const params = JSON.parse(payload.p); return new URL(params.url);", + "author": "PRO-2684" + } + } + }, "mp.weixin.qq.com/": { "s": { "description": "微信公众号文章",