NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name LesserWrong FullWidth // @namespace http://tampermonkey.net/ // @version 0.2 // @description Makes LessWrong 2.0 content take up the whole width of the browser window // @author Said Achmiz // @match *://www.lesserwrong.com/* // @grant none // ==/UserScript== (function() { 'use strict'; var css = document.createElement("style"); css.type = "text/css"; css.innerHTML = "body.full-width-mode .main { max-width: none; padding: 0 2em; } \n"; css.innerHTML += "body.full-width-mode .posts-page .posts-page-content-header { max-width: none; } \n"; css.innerHTML += "body.full-width-mode .posts-page .posts-page-content-body { width: auto } \n"; css.innerHTML += "body.full-width-mode .content-body img { max-width: 660px; } \n"; css.innerHTML += "body.full-width-mode .content-body div { text-align: center; } \n"; css.innerHTML += "body.full-width-mode .content-body p { text-align: justify; } \n"; css.innerHTML += "body.full-width-mode .posts-page .section { width: calc(100% - 240px) !important; margin-left: 240px; } \n"; css.innerHTML += "body.full-width-mode .posts-page .section-content { width: auto !important; } \n"; css.innerHTML += "body.full-width-mode .posts-comments-thread-linked-comment { max-width: none; margin-left: 6em; margin-right: 6em; } \n"; document.body.appendChild(css); document.querySelectorAll("body").forEach(function(element) { element.className += " full-width-mode"; }); })();