Added Redirect To Original for Suds And Urban Dictionary

このコミットが含まれているのは:
ManeraKai 2023-05-28 09:00:35 +03:00
コミット 649e83b77f
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 5ABC31FFD562E337
1個のファイルの変更2行の追加14行の削除

ファイルの表示

@ -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)