Skip to content

Instantly share code, notes, and snippets.

@5310
Last active March 14, 2022 18:49
Show Gist options
  • Save 5310/711b3d44483efc4b9dd8d59dc3046f99 to your computer and use it in GitHub Desktop.
Save 5310/711b3d44483efc4b9dd8d59dc3046f99 to your computer and use it in GitHub Desktop.
IITC Plugin Hide Chat #userscript
// ==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