Created
April 26, 2019 19:25
-
-
Save Dinir/f86c16d06f850efeed81ce55c9bec272 to your computer and use it in GitHub Desktop.
Remove the chat area in Jstris.
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== | |
// @name Jstris Chat Hider | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Remove the chat area in Jstris. | |
// @author Dinir | |
// @match https://*.jstris.jezevec10.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const toggleChat = () => { | |
const chatArea = document.body.getElementsByClassName('chatArea')[0] | |
if(chatArea) { | |
chatArea.setAttribute('style', 'display: none;') | |
} | |
} | |
toggleChat() | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment