From ecdb4466ef94480c77c693e2853e97a85e57c396 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Wed, 31 May 2023 21:00:30 +0300 Subject: Added Laboratory https://github.com/libredirect/browser_extension/issues/723 --- src/assets/javascripts/services.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/assets/javascripts/services.js') diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 0da2bfa5..a5e6a965 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -547,6 +547,11 @@ function redirect(url, type, initiator, forceRedirection) { if (url.hostname == "i.pinimg.com") return `${randomInstance}/image_proxy.php?url=${url.href}` return randomInstance } + case "laboratory": { + let path = url.pathname + if (path == "/") path = "" + return `${randomInstance}/${url.hostname}${path}${url.search}` + } default: { return `${randomInstance}${url.pathname}${url.search}` } @@ -684,6 +689,7 @@ const defaultInstances = { 'mikuInvidious': ['https://mikuinv.resrv.org'], "tent": ['https://tent.sny.sh'], "wolfreeAlpha": ['https://gqq.gitlab.io', 'https://uqq.gitlab.io'], + "laboratory": ['https://lab.vern.cc'], "libreSpeed": ['https://librespeed.org'], 'jitsi': ['https://meet.jit.si', 'https://8x8.vc'], 'binternet': ['https://binternet.ahwx.org'] -- cgit 1.4.1