Skip to main content

close even more tabs!

ID
b2261c5
date
2022-10-10 18:02:46+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
4840a41
message
close even more tabs!
changed files
1 file, 5 additions, 3 deletions

Changed files

close_tabs (3472) → close_tabs (3432)

diff --git a/close_tabs b/close_tabs
index 7d446c4..23b76a1 100755
--- a/close_tabs
+++ b/close_tabs
@@ -33,19 +33,21 @@ function isSafeToClose(url) {
   // so leave this tab open.
   if (url === null) { return false; }
 
+  if (url.startsWith("https://github.com/search") && url.indexOf("org%3Awellcomecollection") !== -1) {
+    return true;
+  }
+
   return (
     url.startsWith("http://localhost:3000/") ||
     url.startsWith("https://api.wellcomecollection.org/") ||
     url.startsWith("https://buildkite.com/orgs/wellcomecollection/") ||
-    url.startsWith("https://buildkite.com/wellcomecollection/") ||
+    url.startsWith("https://buildkite.com/wellcomecollection") ||
     url.startsWith("https://cloud.elastic.co") ||
     url.startsWith("https://console.aws.amazon.com/") ||
     url.startsWith("https://dash.wellcomecollection.org/") ||
     url.startsWith("https://eu-west-1.console.aws.amazon.com/") ||
     url.startsWith("https://eu-west-1.signin.aws.amazon.com/") ||
     url.startsWith("https://github.com/orgs/wellcomecollection/") ||
-    url.startsWith("https://github.com/search?type=Code&q=org:wellcomecollection") ||
-    url.startsWith("https://github.com/search?q=org%3Awellcomecollection") ||
     url.startsWith("https://github.com/wellcomecollection/") ||
     url.startsWith("https://logging.wellcomecollection.org") ||
     url.startsWith("https://manage.auth0.com/") ||