Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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);
})();
@silvers

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.