{"ScriptPreparationCode":"function getRelativeUrl(url) {\r\n try {\r\n if (url.indexOf(\u0027http://\u0027) \u003E -1) {\r\n return url.substring(url.indexOf(\u0027/\u0027, 7) \u002B 1);\r\n }\r\n\r\n if (url.indexOf(\u0027https://\u0027) \u003E -1) {\r\n return url.substring(url.indexOf(\u0027/\u0027, 8) \u002B 1);\r\n }\r\n\r\n throw new Error(\u0027invalid url\u0027);\r\n } catch (e) {\r\n console.error(e);\r\n\r\n return url;\r\n }\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":"RegExp","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(/^(?:https?:\\/\\/)?(?:[^@\\n]\u002B@)?(?:www\\.)?([^:\\/\\n?]\u002B)(\\/[^?#]*)?(\\?[^#]*)?/)[0]","IsDeferred":false},{"Name":"getRelativeUrl","Code":"return getRelativeUrl(\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}]}