Download (zip) View on GitHub

herbaldrinkmate/URLCheck Custom patterns Code

⭐ 🍴

URLCheck Custom patterns

 1  "Reddit ➔ Redlib": {
 2
 3    "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?reddit.com\/(.*)",
 4
 5    "replacement": "https:\/\/farside.link\/redlib\/$1",
 6
 7    "enabled": "true"
 8
 9  },
10
11  "X ➔ Nitter": {
12
13    "regex": "^https?:\/\/x.com\/(.*)",
14
15    "replacement": [
16
17      "https:\/\/xcancel.com\/$1",
18
19      "https:\/\/nitter.poast.org\/$1",
20
21      "https:\/\/nitter.privacydev.net\/$1"
22
23    ],
24
25    "enabled": "true"
26
27  },
28
29  "YouTube Desktop": {
30
31    "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?youtube.com\/watch\\?v=(.*)",
32
33    "replacement": "https:\/\/youtube.com\/v\/$1",
34
35    "enabled": "true"
36
37  },
38
39  "Youtube ➔ Invidious": {
40
41    "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?youtube.com\/(.*)",
42
43    "replacement": [
44
45      "https:\/\/yewtu.be\/$1",
46
47      "https:\/\/farside.link\/invidious\/$1"
48
49    ],
50
51    "enabled": "true"
52
53  },
54
55  "Google Translate": {
56
57    "regex": "^https?:\/\/(?!([a-z0-9-]+\\.)?(google\\.com|translate\\.goog|.*\\.us$))",
58
59    "replacement": "https:\/\/translate.google.com\/translate?sl=auto&tl=en&hl=en&u=$0",
60
61    "enabled": "true"
62
63  }