2-columns facebook layout

2-columns facebook layout script

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name       2-columns facebook layout
// @namespace  Krzysztof Szumny
// @version    0.0.3
// @description  2-columns facebook layout script
// @include        http://*facebook.com/*
// @include        https://*facebook.com/*
// @run-at     document-start
// ==/UserScript==
// Initiate custom CSS function
function GM_addStyle(css) {
	var parent = document.getElementsByTagName("head")[0];
	if (!parent) {
		parent = document.documentElement;
	}
	var style = document.createElement("style");
	style.type = "text/css";
	var textNode = document.createTextNode(css);
	style.appendChild(textNode);
	parent.appendChild(style);
}
GM_addStyle("\
body._5vb_ #globalContainer {\
width: calc(100% - 210px);\
}\
div#contentArea{ \
width:100% !important;\
}\
#rightCol{\
display: none;\
}\
._4ikz {\
width: calc(50% - 20px) !important;\
float: left;\
margin: 10px;\
}\
._4-u2.mbl._5us6{\
float: left;\
width: calc(50% - 20px) !important;\
}\
#pagelet_composer{\
width: calc(100% - 20px);\
margin: 10px;\
}\
._5umn.clearfix{\
width: calc(100% - 20px);\
}\
#pagelet_canvas_nav_content{\
display:none;\
}\
#appsNav{\
display:none;\
}\
");