mirror of
https://github.com/XFox111/TabsAsideExtension.git
synced 2026-04-22 07:58:01 +03:00
Patch 1.3.1
Fixed version number Fixed browser closing Hid elements of unimplemented features Added code for issue #10 (help wanted)
This commit is contained in:
+45
-3
@@ -37,6 +37,26 @@ else
|
||||
|
||||
document.querySelector(".tabsAside .saveTabs").onclick = SetTabsAside;
|
||||
|
||||
document.querySelector("nav > p > small").textContent = chrome.runtime.getManifest()["version"];
|
||||
|
||||
/* var loadOnRestoreCheckbox = document.querySelector("nav > p > input[type=checkbox]");
|
||||
chrome.runtime.sendMessage(
|
||||
{
|
||||
command: "getDiscardOption"
|
||||
},
|
||||
function(loadOnRestore)
|
||||
{
|
||||
loadOnRestoreCheckbox.checked = loadOnRestore;
|
||||
}
|
||||
);
|
||||
loadOnRestoreCheckbox.addEventListener("click", function ()
|
||||
{
|
||||
chrome.runtime.sendMessage(
|
||||
{
|
||||
command: "toggleDiscard"
|
||||
}
|
||||
);
|
||||
}); */
|
||||
|
||||
document.querySelectorAll(".tabsAside.pane > header nav button").forEach(i =>
|
||||
{
|
||||
@@ -98,6 +118,27 @@ function InitializeStandalone()
|
||||
|
||||
document.querySelector(".tabsAside .saveTabs").onclick = SetTabsAside;
|
||||
|
||||
document.querySelector("nav > p > small").textContent = chrome.runtime.getManifest()["version"];
|
||||
|
||||
/* var loadOnRestoreCheckbox = document.querySelector("nav > p > input[type=checkbox]");
|
||||
chrome.runtime.sendMessage(
|
||||
{
|
||||
command: "getDiscardOption"
|
||||
},
|
||||
function(loadOnRestore)
|
||||
{
|
||||
loadOnRestoreCheckbox.checked = loadOnRestore;
|
||||
}
|
||||
);
|
||||
loadOnRestoreCheckbox.addEventListener("click", function ()
|
||||
{
|
||||
chrome.runtime.sendMessage(
|
||||
{
|
||||
command: "toggleDiscard"
|
||||
}
|
||||
);
|
||||
}); */
|
||||
|
||||
document.querySelectorAll(".tabsAside.pane > header nav button").forEach(i =>
|
||||
{
|
||||
i.onclick = function () { window.open(i.value, '_blank'); };
|
||||
@@ -142,8 +183,8 @@ function AddCollection(collection)
|
||||
"<button title='More...'></button>" +
|
||||
"<nav>" +
|
||||
"<button>Restore without removing</button>" +
|
||||
"<button hidden>Add tabs to favorites</button>" +
|
||||
"<button hidden>Share tabs</button>" +
|
||||
// "<button hidden>Add tabs to favorites</button>" +
|
||||
// "<button hidden>Share tabs</button>" +
|
||||
"</nav>" +
|
||||
"</div>" +
|
||||
"<button title='Remove collection'></button>" +
|
||||
@@ -164,7 +205,8 @@ function AddCollection(collection)
|
||||
|
||||
list.querySelectorAll("div > div:last-child > div > span").forEach(i =>
|
||||
{
|
||||
i.onclick = function () {
|
||||
i.onclick = function ()
|
||||
{
|
||||
chrome.runtime.sendMessage(
|
||||
{
|
||||
command: "openTab",
|
||||
|
||||
Reference in New Issue
Block a user