From 649e83b77f6485efdd5fea0799c0770a2ebe8538 Mon Sep 17 00:00:00 2001 From: ManeraKai Date: Sun, 28 May 2023 09:00:35 +0300 Subject: [PATCH] Added Redirect To Original for Suds And Urban Dictionary --- src/assets/javascripts/services.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/assets/javascripts/services.js b/src/assets/javascripts/services.js index 6318405..b5f8ec6 100644 --- a/src/assets/javascripts/services.js +++ b/src/assets/javascripts/services.js @@ -9,7 +9,6 @@ function init() { return new Promise(async resolve => { options = await utils.getOptions() config = await utils.getConfig() - // await sendEnabledFrontends() resolve() }) } @@ -17,19 +16,6 @@ function init() { init() browser.storage.onChanged.addListener(init) -function sendEnabledFrontends() { - let enabledFrontends = [] - if (options) { - for (const service in config.services) { - if (!options[service].enabled) continue - enabledFrontends.push(options[service].frontend) - } - var port = browser.runtime.connectNative("org.libredirect.stdin_parser"); - port.postMessage(JSON.stringify(enabledFrontends)); - port.disconnect() - } -} - function all(service, frontend, options, config) { let instances = [] if (!frontend) { @@ -675,6 +661,8 @@ function reverse(url) { case "twitter": case "reddit": case "imdb": + case "snopes": + case "urbanDictionary": case "quora": case "medium": resolve(config.services[service].url + url.pathname + url.search)