]> git.wh0rd.org - chrome-ext/tabs-backup.git/commitdiff
add extended window/tab details to restore page
authorMike Frysinger <vapier@gentoo.org>
Wed, 29 Jan 2020 01:04:56 +0000 (20:04 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 18 Feb 2020 06:08:33 +0000 (01:08 -0500)
advanced.html
advanced.js
options.html
popup.html

index ecdb129e27391e7425cbbd248e12002345a06cab..83cb9c359a0538b62d21120b7e0440a8fefada5d 100644 (file)
@@ -1,6 +1,7 @@
 <!doctype html>
 <html>
   <head>
+    <meta charset='utf-8'/>
     <title>Tabs Backup & Restore</title>
     <style>
                ::-webkit-scrollbar {
index 588e0567a4d37f8f153b98234fd4daa07f865d1e..63109b6dd60ca46d4d75b09edfd0e9e615cf6d95 100644 (file)
@@ -488,8 +488,9 @@ function showAdvancedRestoreFor (backupName) {
 
 
                        var windowTitleSpan = document.createElement('span');
-                       windowTitleSpan.innerHTML = '<span style="font-weight: bold">Window ' + (i+1) + '</span>' +
-                                                                               '<span style="float: right; font-size: 11px;">Tabs: ' + windowTabs.length + '</span>';
+                       windowTitleSpan.innerHTML =
+                               `<span style="font-weight: bold">Window ${i + 1} (${window.state}) ${window.width}×${window.height} @ ${window.top}×${window.left}</span>` +
+                               `<span style="float: right; font-size: 11px;">Tabs: ${windowTabs.length}</span>`;
                        //windowTitleSpan.innerHTML = '<span>Window ' + (i+1) + '</span>' +
                        //                                                      '<br /><span style="font-size: 10px;">Nr. Tabs: ' + windowTabs.length + '</span>';
 
@@ -528,7 +529,9 @@ function showAdvancedRestoreFor (backupName) {
                                var tabSpanElem = document.createElement('span');
                                tabSpanElem.className = "restoreTabSpan";
                                var title = tabTitle === '' ? tabUrl : tabTitle;
-                               tabSpanElem.innerHTML = '<a href="' + tabUrl + '" target="_blank">' + title + '</a>';
+                               tabSpanElem.innerHTML =
+                                       (tab.pinned ? '📌 ' : '') +
+                                       `<a href="${tabUrl}" target="_blank">${title}</a>`;
 
                                tabElem.appendChild(checkboxTabElem);
                                tabElem.appendChild(checkboxTabLabelElem);
index 5a59c12b7504d25b400ce0c27ed6510c96e1be48..87f638e340f25ac0ae6c45bc30898897ed0da8fb 100644 (file)
@@ -1,6 +1,7 @@
 <!doctype html>
 <html>
   <head>
+    <meta charset='utf-8'/>
     <title>Tabs Backup & Restore - Options</title>
     <style>
       body {
index b273d8cf0824e72b04aa048d47cb15e5653101b1..fba1063abc864e96a6d94e8292016851622dc5d5 100644 (file)
@@ -1,6 +1,7 @@
 <!doctype html>
 <html>
   <head>
+    <meta charset='utf-8'/>
     <title>Tabs Backup & Restore</title>
     <style>