diff --git a/README.md b/README.md
index decec87..fb6e582 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,5 @@
-bookmark tabs to right
+Bookmark All Tabs
-![context menu](https://mdejean.github.io/bookmarktoright/screenshot.png)
-
-![popup](https://mdejean.github.io/bookmarktoright/screenshot2.png)
+This add-on restores the Bookmark All Tabs feature in thr main context menu of the Firefox tab bar that was moved in version 64.
Except as otherwise noted, this software is distributed under the terms of the GNU General Public License, version 2 or later. See LICENSE for the full text. Alternate licensing is available.
diff --git a/_locales/en/messages.json b/_locales/en/messages.json
index f1bbb24..47c364c 100644
--- a/_locales/en/messages.json
+++ b/_locales/en/messages.json
@@ -1,21 +1,21 @@
{
"extensionName": {
- "message": "Bookmark Tabs to the Right",
+ "message": "Bookmark All Tabs",
"description": "Name of the extension."
},
"extensionDescription": {
- "message": "Bookmark tabs to the right of a tab by right clicking or the current tab with a key command",
+ "message": "Bookmark all tabs. Fork of Bookmark Tabs to the Right.",
"description": "Description of the extension."
},
"menuItem": {
- "message": "Bookmark Tabs to the Right",
+ "message": "Bookmark All Tabs…",
"description": "Tab context menu item"
},
"commandDescription": {
- "message": "Bookmark tabs to the right",
+ "message": "Bookmark All Tabs…",
"description": "Keyboard shortcut description"
},
diff --git a/background.js b/background.js
index b5564c6..4ab3e2e 100644
--- a/background.js
+++ b/background.js
@@ -22,11 +22,11 @@ async function showBookmarkWindow(tabs) {
});
}
-async function bookmarkRight(window, index) {
+async function bookmarkAll(window, index) {
let tabs = await browser.tabs.query({windowId: window});
//to the right of index
- tabs = tabs.filter((t) => t.index > index);
+ //tabs = tabs.filter((t) => t.index > index);
//remove duplicate tabs
tabs = tabs.filter((t1, i1) =>
@@ -39,21 +39,21 @@ async function bookmarkRight(window, index) {
browser.contextMenus.create({
contexts: ['tab'],
- id: 'bookmark-right',
+ id: 'bookmark-all',
title: browser.i18n.getMessage('menuItem')
});
browser.contextMenus.onClicked.addListener((info, tab) => {
- if (info.menuItemId == 'bookmark-right') {
- bookmarkRight(tab.windowId, tab.index);
+ if (info.menuItemId == 'bookmark-all') {
+ bookmarkAll(tab.windowId, tab.index);
}
});
browser.commands.onCommand.addListener(async (command) => {
- if (command == 'bookmark-right') {
+ if (command == 'bookmark-all') {
let tabs = await browser.tabs.query({
active: true,
windowId: browser.windows.WINDOW_ID_CURRENT
});
- bookmarkRight(browser.windows.WINDOW_ID_CURRENT, tabs[0].index);
+ bookmarkAll(browser.windows.WINDOW_ID_CURRENT, tabs[0].index);
}
});
diff --git a/bookmarkright.svg b/bookmark.svg
similarity index 82%
rename from bookmarkright.svg
rename to bookmark.svg
index cbf1074..60005d8 100644
--- a/bookmarkright.svg
+++ b/bookmark.svg
@@ -5,6 +5,5 @@