Last active
March 14, 2022 18:49
-
-
Save 5310/711b3d44483efc4b9dd8d59dc3046f99 to your computer and use it in GitHub Desktop.
IITC Plugin Hide Chat #userscript
This file contains hidden or 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== | |
// @id iitc-plugin-hide-chat | |
// @name IITC plugin: Hide Chat | |
// @category Tweaks | |
// @version 0.1.0 | |
// @description Hides the chat. | |
// @include https://*.ingress.com/intel* | |
// @include http://*.ingress.com/intel* | |
// @match https://*.ingress.com/intel* | |
// @match http://*.ingress.com/intel* | |
// @include https://*.ingress.com/mission/* | |
// @include http://*.ingress.com/mission/* | |
// @match https://*.ingress.com/mission/* | |
// @match http://*.ingress.com/mission/* | |
// @grant none | |
// ==/UserScript== | |
// Doesn't actually use any IITC features. | |
{ | |
const run = () => setTimeout(() => Array.from(document.querySelectorAll('#chatcontrols, #chat, #chatinput')).forEach(element => element.style.display = 'none'), 200) | |
if (['complete', 'loaded', 'interactive'].includes(document.readyState)) run() | |
else document.addEventListener('DOMContentLoaded', run) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment