Skip to content

Commit d81ec62

Browse files
committed
Merge branch 'reupload'
2 parents e57bb79 + bed1ac7 commit d81ec62

10 files changed

+406
-18
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
2-
zoom-tab-closer.zip
1+
*.zip

LICENSE

Lines changed: 373 additions & 1 deletion
Large diffs are not rendered by default.

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Tab Closer for Zoom
2+
13
A small WebExtension that auto closes the zoom tab (https://zoom.us/) when you launch a meeting, because it doesn't do that itself for some reason.
24

35
Find it published for Firefox here:
@@ -7,3 +9,16 @@ https://addons.mozilla.org/en-US/firefox/addon/zoom-tab-closer
79
And Chrome here:
810

911
https://chrome.google.com/webstore/detail/zoom-tab-closer/dipbdmjcnihnpjpignoilhljekeimlkp?hl=en
12+
13+
14+
## Develop
15+
16+
1. Make changes
17+
1. Run `./build.ps1`
18+
1. Create github release
19+
1. Upload zip to respective hosts
20+
21+
22+
### Tests?
23+
24+
Click Unit Tests on https://regex101.com/r/ZMxEBP/1

background.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1+
const waitMs = 5000;
2+
13
function closeZoomTabOnSuccessListener(tabId, changeInfo, tab) {
2-
if (tab.url.match(/https:\/\/.+?\.zoom\.us\/.+?success.*/)) {
4+
if (tab.url.match(/https:\/\/(?:.+\.)*?zoom\.us\/.+?success.*/)) {
5+
console.debug(`Detected #success, closing tab in ${waitMs} ms`);
36
setTimeout(() => {
7+
console.debug(`Closed tab ID ${tabId}`);
48
chrome.tabs.remove(tabId, _ => chrome.runtime.lastError);
5-
}, 5000)
9+
}, waitMs)
610
}
711
}
812

13+
console.debug("Enabled zoom tab listener");
914
chrome.tabs.onUpdated.addListener(closeZoomTabOnSuccessListener);

build.cmd

Lines changed: 0 additions & 9 deletions
This file was deleted.

build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$zipfile="tab-closer-for-zoom.zip"
2+
Write-Host "Cleaning up..."
3+
Remove-Item $zipfile -ErrorAction SilentlyContinue
4+
Write-Host "Creating zip..."
5+
$files = "background.js","icon-128.png","manifest.json"
6+
Compress-Archive -DestinationPath $zipfile -Path $files
7+
Write-Host "Zipped $zipfile"

icon-128.png

-14.2 KB
Loading

manifest.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"description": "Close the Zoom tab once it's redirected to Zoom",
2+
"description": "Close the tab automatically once you join your meeting",
33
"homepage_url": "https://github.com/grrttedwards/zoom-tab-closer",
44
"manifest_version": 2,
5-
"name": "Zoom tab closer",
5+
"name": "Tab Closer for Zoom",
66
"permissions": [
7-
"activeTab",
87
"tabs"
98
],
109
"background": {
@@ -13,5 +12,5 @@
1312
"icons": {
1413
"128": "icon-128.png"
1514
},
16-
"version": "0.3.4"
15+
"version": "0.3.5"
1716
}

zoom-tab-closer-screenshot-ch.png

-5.88 KB
Loading

zoom-tab-closer-screenshot-ch.psd

393 KB
Binary file not shown.

0 commit comments

Comments
 (0)