Skip to content

Instantly share code, notes, and snippets.

@0xLeon
Created May 17, 2018 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xLeon/ee1ad1b26c1127d31b8dd5168e82b64e to your computer and use it in GitHub Desktop.
Save 0xLeon/ee1ad1b26c1127d31b8dd5168e82b64e to your computer and use it in GitHub Desktop.
Fixes a BisaChat fullscreen bug in Chrome
// ==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