Wide easily readable StackOverflow

try to take over the world!

  1. // ==UserScript==
  2. // @name Wide easily readable StackOverflow
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.3
  5. // @description try to take over the world!
  6. // @author Tut 'UniBreakfast' Ninin
  7. // @match https://stackoverflow.com/questions/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. document.getElementById('left-sidebar').remove();
  14. document.getElementById('sidebar').remove();
  15. document.getElementById('footer').remove();
  16. document.getElementById('post-form').remove();
  17. var element = document.getElementById('content').style;
  18. element.width = '2000px';
  19. element.maxWidth = '2000px';
  20. element.border = '0';
  21. element.margin = '0 40px';
  22. document.getElementById('mainbar').style.width = '100%';
  23. document.getElementsByClassName('top-bar')[0].style.height = '27px';
  24. document.getElementsByClassName('js-search-field')[0].style.height = '22px';
  25. document.getElementsByClassName('question-page')[0].style.paddingTop = '14px';
  26. element = document.createElement('style');
  27. element.textContent =
  28. '.lit{color:#4ecc30}.kwd{color:#5a89f7}.str{color:#e8730a}.com{color:#a9adb1}.pun{color:#7443a9}'+
  29. 'body{font-family:"Trebuchet MS",Arial,"Helvetica Neue",Helvetica,sans-serif}'+
  30. //'code{font-weight:bold}'+
  31. '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}'+
  32. '.comment-text,.comment-copy,.post-text{color:darkgreen;font-style:italic;font-family:"Trebuchet MS",Arial,"Helvetica Neue",Helvetica,sans-serif}'+
  33. '.comment-text{font-size:14px}.post-text{font-size:16px!important}'+
  34. '.grid{margin-right:100px!important}.user-info{background:cornsilk}'+
  35. '.relativetime{font-size:15px;font-weight:bold}'+
  36. '.answers-subheader{padding-left:100px}'+
  37. '.post-menu{display:none}'+
  38. '.comments-link{display:none}';
  39. document.head.appendChild(element);
  40. })();