cleanup, tweak a couple small things, prep for release
This commit is contained in:
1 parent
32f02b03a5
commit
8aefcc1166
4 files changed
+19
-3
No files matched your search
@@ -1362,6 +1362,16 @@ function open_mining(info, tab)
|
|||||||
});
|
});
|
||||||
} catch(err) {}
|
} catch(err) {}
|
||||||
}
|
}
|
||||||
|
function open_livemining(info, tab)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
browser.windows.create({
|
||||||
|
url:browser.extension.getURL("livemining.html"),
|
||||||
|
type:"popup"
|
||||||
|
});
|
||||||
|
} catch(err) {}
|
||||||
|
}
|
||||||
|
|
||||||
if(browser.contextMenus)
|
if(browser.contextMenus)
|
||||||
{
|
{
|
||||||
@@ -1377,6 +1387,12 @@ if(browser.contextMenus)
|
|||||||
contexts: ["browser_action"],
|
contexts: ["browser_action"],
|
||||||
onclick: open_mining
|
onclick: open_mining
|
||||||
});
|
});
|
||||||
|
browser.contextMenus.create({
|
||||||
|
id: "nazeka-livemining",
|
||||||
|
title: "Configure Live Mining",
|
||||||
|
contexts: ["browser_action"],
|
||||||
|
onclick: open_livemining
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
let origin_tab = undefined;
|
let origin_tab = undefined;
|
||||||
|
|||||||
File renamed without changes.
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
"applications": {
|
"applications": {
|
||||||
"gecko": {
|
"gecko": {
|
||||||
"id": "nazeka@wareya.moe",
|
"id": "nazeka@wareya.moe",
|
||||||
"strict_min_version": "56.0"
|
"strict_min_version": "57.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -58,7 +58,7 @@ function defaults()
|
|||||||
id: "alternatives_mode",
|
id: "alternatives_mode",
|
||||||
kind: "combobox",
|
kind: "combobox",
|
||||||
options: ["Longest match only", "Longest and shortest match", "Longest and second longest match", "All matches"],
|
options: ["Longest match only", "Longest and shortest match", "Longest and second longest match", "All matches"],
|
||||||
default: 0,
|
default: 3,
|
||||||
label: "Matching mode"
|
label: "Matching mode"
|
||||||
});
|
});
|
||||||
settings.push({
|
settings.push({
|
||||||
@@ -109,7 +109,7 @@ function defaults()
|
|||||||
id: "live_mining",
|
id: "live_mining",
|
||||||
kind: "checkbox",
|
kind: "checkbox",
|
||||||
default: false,
|
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
|
// display
|
||||||
|
|||||||
Reference in new issue
Block a user