/*
* @title [GitHub] Zen Mode Wiki
* @description GitHub の Wiki で Zen Mode を利用する
* @include https://github.com/*
* @license MIT License
*/
(function() {
var style_id = 'm4i-zen-mode';
var style = document.getElementById(style_id);
if (style) {
style.parentNode.removeChild(style);
} else {
style = document.createElement('style');
style.id = style_id;
var css = [
'#gollum-editor-body {',
'margin: 0 !important;',
'position: absolute;',
'top: 0;',
'left: 0;',
'width: 100%;',
'height: 100% !important;',
'z-index: 10000;',
'}',
'#gollum-editor-submit {',
'position: absolute;',
'bottom: 10px;',
'right: 100px;',
'z-index: 10001;',
'}',
'#gollum-editor-preview {',
'position: absolute;',
'bottom: 10px;',
'right: 10px;',
'z-index: 10001;',
'}',
].join('\n');
style.appendChild(document.createTextNode(css));
document.getElementsByTagName('head')[0].appendChild(style);
}
})();