From 8aefcc1166129e1d0ba6b9cf3a9b0a1ad4c1415a Mon Sep 17 00:00:00 2001 From: wareya Date: Wed, 10 Apr 2019 17:08:18 -0400 Subject: [PATCH] cleanup, tweak a couple small things, prep for release --- background-script.js | 16 ++++++++++++++++ etc/{update.sh => update} | 0 manifest.json | 2 +- options.js | 4 ++-- 4 files changed, 19 insertions(+), 3 deletions(-) rename etc/{update.sh => update} (100%) diff --git a/background-script.js b/background-script.js index cfca649..e05c73a 100644 --- a/background-script.js +++ b/background-script.js @@ -1362,6 +1362,16 @@ function open_mining(info, tab) }); } catch(err) {} } +function open_livemining(info, tab) +{ + try + { + browser.windows.create({ + url:browser.extension.getURL("livemining.html"), + type:"popup" + }); + } catch(err) {} +} if(browser.contextMenus) { @@ -1377,6 +1387,12 @@ if(browser.contextMenus) contexts: ["browser_action"], onclick: open_mining }); + browser.contextMenus.create({ + id: "nazeka-livemining", + title: "Configure Live Mining", + contexts: ["browser_action"], + onclick: open_livemining + }); } let origin_tab = undefined; diff --git a/etc/update.sh b/etc/update similarity index 100% rename from etc/update.sh rename to etc/update diff --git a/manifest.json b/manifest.json index 21ccf6c..cb0fadc 100644 --- a/manifest.json +++ b/manifest.json @@ -9,7 +9,7 @@ "applications": { "gecko": { "id": "nazeka@wareya.moe", - "strict_min_version": "56.0" + "strict_min_version": "57.0" } }, diff --git a/options.js b/options.js index dd553be..2ced38b 100644 --- a/options.js +++ b/options.js @@ -58,7 +58,7 @@ function defaults() id: "alternatives_mode", kind: "combobox", options: ["Longest match only", "Longest and shortest match", "Longest and second longest match", "All matches"], - default: 0, + default: 3, label: "Matching mode" }); settings.push({ @@ -109,7 +109,7 @@ function defaults() id: "live_mining", kind: "checkbox", default: false, - label: "Enable live mining (experimental!) (configured via the button below under \"Other\")" + label: "Enable live mining (configured via the button below under \"Other\")" }); // display