Wide easily readable StackOverflow

try to take over the world!

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Wide easily readable StackOverflow
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  try to take over the world!
// @author       Tut 'UniBreakfast' Ninin
// @match        https://stackoverflow.com/questions/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
document.getElementById('left-sidebar').remove();
document.getElementById('sidebar').remove();
document.getElementById('footer').remove();
document.getElementById('post-form').remove();
var element = document.getElementById('content').style;
element.width = '2000px';
element.maxWidth = '2000px';
element.border = '0';
element.margin = '0 40px';
document.getElementById('mainbar').style.width = '100%';
document.getElementsByClassName('top-bar')[0].style.height = '27px';
document.getElementsByClassName('js-search-field')[0].style.height = '22px';
document.getElementsByClassName('question-page')[0].style.paddingTop = '14px';
element = document.createElement('style');
element.textContent =
    '.lit{color:#4ecc30}.kwd{color:#5a89f7}.str{color:#e8730a}.com{color:#a9adb1}.pun{color:#7443a9}'+
    'body{font-family:"Trebuchet MS",Arial,"Helvetica Neue",Helvetica,sans-serif}'+
    //'code{font-weight:bold}'+
    'code{color:black;font-size:18px!important;font-style:normal;line-height:18px;font-family:Ubuntu Mono,Consolas,Menlo,Monaco,Lucida Console,Liberation Mono,DejaVu Sans Mono,Bitstream Vera Sans Mono,Courier New,monospace,sans-serif}'+
    '.comment-text,.comment-copy,.post-text{color:darkgreen;font-style:italic;font-family:"Trebuchet MS",Arial,"Helvetica Neue",Helvetica,sans-serif}'+
    '.comment-text{font-size:14px}.post-text{font-size:16px!important}'+
    '.grid{margin-right:100px!important}.user-info{background:cornsilk}'+
    '.relativetime{font-size:15px;font-weight:bold}'+
    '.answers-subheader{padding-left:100px}'+
    '.post-menu{display:none}'+
    '.comments-link{display:none}';
document.head.appendChild(element);
})();