Last active
July 1, 2020 16:47
-
-
Save m4saka/e6fa6991c3c188d6d784f8d33d0c574a to your computer and use it in GitHub Desktop.
GmailのMeet/Chatメニューを非表示化するGreaseMonkey用スクリプト(※2020年6月からこんなことしなくても普通に設定から非表示にできるようになった模様)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GmailのMeet/Chat非表示化 | |
// @version 1 | |
// @grant none | |
// @include https://mail.google.com/mail/* | |
// ==/UserScript== | |
(function () { | |
setInterval(function() { | |
let menu = document.getElementsByClassName('ajl')[0]; | |
let footer = document.getElementsByClassName('akc')[0]; | |
if (menu && footer) { | |
menu.style.height = (parseInt(menu.style.height) + parseInt(footer.style.height)) + 'px'; | |
footer.style.height = '0px'; | |
} | |
}, 100); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment