Back to Scripts —
Install
This user script is only a css file, however you can use it with the following js snippet.
// ==UserScript==
// @match http://facebook.com/*
// @match https://facebook.com/*
// @resource customCSS https://sucs.org/~ripp_/UserScripts/facebook.com/newslayout.css
// @name facebook.com/newslayout.css
// @downloadURL https://sucs.org/~ripp_/UserScripts/facebook.com/newslayout.css.user.js
// @version 2016.04.14.06-0.2
// @description Injects newslayout.css into facebook.com
// @author ~ripp_
// @grant GM_getResourceText
// ==/UserScript==
var s = document.createElement("style");
s.textContent = GM_getResourceText("customCSS").replace(/\s/g," ");
document.head.appendChild(s);
The css file it inserts is:
div#content {
max-width: 100%;
}
div#globalContainer {
max-width: 100%;
}
div#pagelet_sidebar {
display: none;
}
div#globalContainer {
padding-right: 0!important;
}
div#leftCol {
float: none;
width: 100%!important;
padding: 0!important;
margin: 0!important;
}
.sideNavItem {
float: left;
clear: none!important;
}
.navHeader {
display: none;
}
div#sideNav::after {
clear: left;
display: block;
content: "";
}
#contentCol {
margin-left: 0!important;
}
div#rightCol {
display: none;
}
div#contentArea {
width: 100%!important;
}
._bui ._5afe .linkWrap {
max-width: initial;
}
._55y4 ._bui .sideNavItem .hasCount {
max-width: none!important;
}
._55y4 ._bui ._5afe {
margin-left: 0px!important;
}
ul._bui.nonDroppableNav._3-96::after {
}
div#sideNav {
background: white;
}
div#sideNav {
padding: 5px;
padding-left: 25px;
margin-left: 12px;
}