
Zoom Success Tab Closer 作成者: Tangy
Automatically closes any Zoom (meeting software) tab that ends in '#success' (this URL is only used to join a meeting) after 10 seconds.
この拡張機能を使用するには Firefox が必要です
拡張機能メタデータ
この拡張機能について
Could not provide source code, because does not require permissions needed. So I put it here, feel free to build on your own and sideload
manifest.json
{
"manifest_version": 2,
"name": "Zoom Success Tab Closer",
"version": "1.1",
"description": "Automatically closes any Zoom tab that ends in '#success' after 10 seconds.",
"permissions": [
"tabs"
],
"background": {
"scripts": ["background.js"]
}
}
background.js
function checkForZoomSuccessTab(tab) {
if (tab.url.includes("zoom.us") && tab.url.endsWith("#success")) {
setTimeout(() => {
// Close the tab after 10 seconds
browser.tabs.remove(tab.id);
}, 10000); // 10000 milliseconds = 10 seconds
}
}
// Listen for any tab updates
browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
// Ensure the URL is defined in the changeInfo
if (changeInfo.url) {
checkForZoomSuccessTab(tab);
}
});
// Check all tabs on startup
browser.tabs.query({}).then(tabs => {
tabs.forEach(tab => {
checkForZoomSuccessTab(tab);
});
});
manifest.json
{
"manifest_version": 2,
"name": "Zoom Success Tab Closer",
"version": "1.1",
"description": "Automatically closes any Zoom tab that ends in '#success' after 10 seconds.",
"permissions": [
"tabs"
],
"background": {
"scripts": ["background.js"]
}
}
background.js
function checkForZoomSuccessTab(tab) {
if (tab.url.includes("zoom.us") && tab.url.endsWith("#success")) {
setTimeout(() => {
// Close the tab after 10 seconds
browser.tabs.remove(tab.id);
}, 10000); // 10000 milliseconds = 10 seconds
}
}
// Listen for any tab updates
browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
// Ensure the URL is defined in the changeInfo
if (changeInfo.url) {
checkForZoomSuccessTab(tab);
}
});
// Check all tabs on startup
browser.tabs.query({}).then(tabs => {
tabs.forEach(tab => {
checkForZoomSuccessTab(tab);
});
});
あなたの体験を評価
権限詳細情報
このアドオンの権限:
- ブラウザーのタブへのアクセス
詳しい情報
- バージョン
- 1.1
- サイズ
- 8.03 KB
- 最終更新日
- 1年前 (2024年5月15日)
- 関連カテゴリー
- ライセンス
- Mozilla Public License 2.0
- バージョン履歴
コレクションへ追加
1.1 のリリースノート
Removed all urls permission
Tangy が公開している他の拡張機能
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません
- まだ評価されていません