NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name jFB_rightSideStatusBar
// @namespace http://tampermonkey.net/
// @updateURL https://openuserjs.org/meta/vaultdweller123/jFB_rightSideStatusBar.meta.js
// @version 0.1
// @description Put FB status bar on right side pane
// @copyright 2016, Jc Mulit (https://www.facebook.com/vaultdweller123)
// @homepageURL https://openuserjs.org/scripts/vaultdweller123/jFB_rightSideStatusBar
// @author Jc Mulit
// @match https://www.facebook.com
// @grant GM_addStyle
// @require https://code.jquery.com/jquery-2.2.3.js#sha256=95a5d6b46c9da70a89f0903e5fdc769a2c266a22a19fcb5598e5448a044db4fe
// ==/UserScript==
(function() {
'use strict';
// Your code here...
// fb links is missing with the scripts
jQuery("a[href='https://www.facebook.com/?ref=logo']").attr("href","javascript:window.location = 'https://www.facebook.com'");
jQuery("a[href='https://www.facebook.com/?ref=tn_tnmn']").attr("href","javascript:window.location = 'https://www.facebook.com'");
// elements
var status_bar = "div#feedx_container";
var right_pane = "div#rightCol";
var move_left = '';
// prepend status bar to right pane
jQuery(status_bar).prependTo(right_pane);
if( window.screen.width >= 1920 ){ // for larger screens
move_left = '56%;';
}else{
move_left = '58%;';
}
// positions right panel
GM_addStyle(right_pane+' { position: fixed !important; left: '+move_left+' !important; }');
// fix ul
GM_addStyle(status_bar+' ul li{ display: block !important; margin: 0 !important; border: 0 !important; padding: 0 !important; }');
// add margin bottom
GM_addStyle(status_bar+' .composerAudienceWrapper{ margin-bottom: 8px !important; }');
// shows on console script reaches end
console.log('I love Joja <3');
})();