Add Google Docs; remember to actually close the tabs
- ID
dbe2d81- date
2024-02-28 08:13:45+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
da1c3f1- message
Add Google Docs; remember to actually close the tabs- changed files
1 file, 2 additions, 1 deletion
Changed files
macos/close_tabs (2890) → macos/close_tabs (2942)
diff --git a/macos/close_tabs b/macos/close_tabs
index f587751..fdfa26d 100755
--- a/macos/close_tabs
+++ b/macos/close_tabs
@@ -51,6 +51,7 @@ function isSafeToClose(url) {
) || (
url === 'https://alexwlchan.net/' ||
url === 'https://arstechnica.com/' ||
+ url === 'https://docs.google.com/document/u/0/' ||
url === 'https://github.com/' ||
url === 'https://github.com/alexwlchan/books.alexwlchan.net' ||
url === 'https://github.com/alexwlchan/scripts' ||
@@ -75,7 +76,7 @@ let remainingCount = 0;
for (const [window_index, tab_index, url] of tabGenerator()) {
if (isSafeToClose(url)) {
console.log(url);
- // safari.windows[window_index].tabs[tab_index].close();
+ safari.windows[window_index].tabs[tab_index].close();
closedCount += 1;
} else {
remainingCount += 1;