Created
May 17, 2018 18:23
-
-
Save 0xLeon/ee1ad1b26c1127d31b8dd5168e82b64e to your computer and use it in GitHub Desktop.
Fixes a BisaChat fullscreen bug in Chrome
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 BisaChat Chrome Fullscreen Fix | |
// @namespace http://projects.0xleon.com/userscripts/bc-chrome-full-fix | |
// @version 1.0.0 | |
// @description Fixes a BisaChat fullscreen bug in Chrome. | |
// @author Stefan Hahn | |
// @copyright 2018, Stefan Hahn | |
// @match https://bisachat.bisafans.de/index.php?room/*/ | |
// @grant unswafeWindow | |
// @run-at document-body | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let style = unsafeWindow.document.createElement('style'); | |
let text = unsafeWindow.document.createTextNode('.main > div { height: initial !important; }'); | |
style.appendChild(text); | |
unsafeWindow.document.querySelector('head').appendChild(style); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment