{"ScriptPreparationCode":"var e = [\u0022/\u0022, \u0022:\u0022, \u0022?\u0022, \u0022#\u0022],\r\n t = [\u0022.\u0022, \u0022/\u0022, \u0022@\u0022];\r\n\r\nfunction extractDomain(n) {\r\n for (var i, u = 0, f = 0, s = 0, a = n.length, c = 0; a-- \u0026\u0026 \u002B\u002Bc \u0026\u0026 !(u \u0026\u0026 e.indexOf(n[c]) \u003E -1);) \u0022.\u0022 === n[c] \u0026\u0026 (\u002B\u002Bu, f = c);\r\n for (i = c, c = f; c--;)\r\n if (-1 !== t.indexOf(n[c])) {\r\n s = c \u002B 1;\r\n break\r\n } if (0 === s \u0026\u0026 i \u003E 3) return n;\r\n if (s \u003E 0 \u0026\u0026 s \u003C 2) return \u0022\u0022;\r\n return n.slice(s, i)\r\n}","TestCases":[{"Name":"new URL","Code":"return new URL(\u0027https://is5-ssl.mzstatic.com/image/thumb/Purple126/v4/00/33/2e/00332e58-b196-82cf-1231-82d81d6fe477/AppIcon_TikTok-0-0-1x_U007emarketing-0-0-0-7-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/512x0w.png\u0027).origin;","IsDeferred":false},{"Name":"RegEx","Code":"return \u0027https://is5-ssl.mzstatic.com/image/thumb/Purple126/v4/00/33/2e/00332e58-b196-82cf-1231-82d81d6fe477/AppIcon_TikTok-0-0-1x_U007emarketing-0-0-0-7-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/512x0w.png\u0027.match(/((http|ftp|https):\\/\\/)?(([\\w.-]*)\\.([\\w]*))/)[0]","IsDeferred":false},{"Name":"extractDomain lib","Code":"return extractDomain(\u0027https://is5-ssl.mzstatic.com/image/thumb/Purple126/v4/00/33/2e/00332e58-b196-82cf-1231-82d81d6fe477/AppIcon_TikTok-0-0-1x_U007emarketing-0-0-0-7-0-0-sRGB-0-0-0-GLES2_U002c0-512MB-85-220-0-0.png/512x0w.png\u0027)","IsDeferred":false}]}