Skip to content

Instantly share code, notes, and snippets.

@silvers
Last active June 26, 2020 01:46
Show Gist options
  • Save silvers/183fe399d8e083b975939c5c0382615b to your computer and use it in GitHub Desktop.
Save silvers/183fe399d8e083b975939c5c0382615b to your computer and use it in GitHub Desktop.
zoomのタブから離れたら閉じる君
// ==UserScript==
// @name Close Zoom Tab
// @namespace http://tampermonkey.net/
// @version 0.3
// @description close zoom tab on success
// @author silvers
// @match https://*.zoom.us/j/*
// @match https://zoom.us/j/*
// @grant window.close
// ==/UserScript==
(function() {
'use strict';
document.addEventListener("visibilitychange", function() {
if (document.hidden) {
window.close();
}
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment