Advertisement
MyCheapPhone

URLCheck-PatternChecker.json

Nov 28th, 2024 (edited)
11
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.43 KB | None | 0 0
  1. {
  2.   "Warning! Non-ASCII characters found.": {
  3.     "regex": "[^\\p{ASCII}]"
  4.   },
  5.   "HTTP link. Consider using HTTPS.": {
  6.     "regex": "^http:\/\/",
  7.     "replacement": "https:\/\/"
  8.   },
  9.   "Missing HTTP scheme.": {
  10.     "regex": "^(?!.*:)",
  11.     "replacement": "http:\/\/$0"
  12.   },
  13.   "Missing HTTPS scheme.": {
  14.     "regex": "^(?!.*:)",
  15.     "replacement": "https:\/\/$0"
  16.   },
  17.   "Invalid http scheme capitalization.": {
  18.     "regex": "^(?!http:)[hH][tT]{2}[pP]:(.*)",
  19.     "replacement": "http:$1",
  20.     "automatic": "true"
  21.   },
  22.   "Invalid https scheme capitalization.": {
  23.     "regex": "^(?!https:)[hH][tT]{2}[pP][sS]:(.*)",
  24.     "replacement": "https:$1",
  25.     "automatic": "true"
  26.   },
  27.   "Reddit ➔ Redlib": {
  28.     "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?reddit.com\/(.*)",
  29.     "replacement": "https:\/\/farside.link\/redlib\/$1",
  30.     "enabled": "true"
  31.   },
  32.   "X ➔ Nitter": {
  33.     "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?x.com\/(.*)",
  34.     "replacement": "https:\/\/xcancel.com\/$1",
  35.     "enabled": "true"
  36.   },
  37.   "YouTube Desktop": {
  38.     "regex": "^https?:\/\/.*\\.youtube\\.com\/watch\\?v=([a-zA-Z0-9_-]+)",
  39.     "replacement": [
  40.       "https:\/\/youtube.com\/v\/$1"
  41.     ],
  42.     "enabled": "true"
  43.   },
  44.   "Youtube ➔ Invidious": {
  45.     "regex": "^https?:\/\/(?:[a-z0-9-]+\\.)*?youtube.com\/(.*)",
  46.     "replacement": [
  47.       "https:\/\/yewtu.be\/$1",
  48.       "https:\/\/farside.link\/invidious\/$1"
  49.     ],
  50.     "enabled": "false"
  51.   }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement