diff --git a/background.js b/background.js index 87dfa3e..0c7c03f 100644 --- a/background.js +++ b/background.js @@ -77,6 +77,18 @@ browser.contextMenus.create({ contexts: ["all"] }); +browser.contextMenus.create({ + id: "my-scuttle", + title: "My (Semantic)Scuttle", + onclick: function(){ + browser.storage.local.get(["instance_url","username"],function(item){ + myurl = item["instance_url"] + "/bookmarks.php/" + item["username"]; + var creating = browser.tabs.create({url: myurl}); + }) + }, + contexts: ["all"] +}); + browser.browserAction.onClicked.addListener((tab) => { if((tab.url.includes("about:reader?url=") == true) || (tab.url.includes("https://addons.mozilla.org/") == true)){ shareURL("",tab); diff --git a/manifest.json b/manifest.json index 2ca8a0b..b6b1997 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version" : 2, "name": "Add to (Semantic)Scuttle", - "version" : "0.8", + "version" : "0.9", "description" : "Add bookmarks to a (Semantic)Scuttle instance, a social bookmarking tool experimenting with tags and collaborative tag descriptions.", "homepage_url" : "https://addons.mozilla.org/fr/firefox/addon/add-to-semantic-scuttle/", "icons" : { diff --git a/options.html b/options.html index 06ca612..64e2d1e 100644 --- a/options.html +++ b/options.html @@ -9,6 +9,7 @@