Hello.
So this is going back to the topic someone mentioned a while back about the right navigation bar being too busy, flashing, taking up room, etc. I wrote the script below for the Firefox Chickenfoot extension. This script will place two new hyperlinks on the top navigation menu: "Right" and "Left".
Clicking these will hide/show the right and left navigation bars, giving you more room to read/work.
This script also removes the horizontal scroll bar that shows up in the editor screen when you're trying to make a post or reply.
Enjoy!
// ==UserScript==
// @name SiglerSiteFix
// @when Pages Match
// @includes *scottsigler.com/*
// @by ext237
// ==/UserScript==
function $(v) {
try {
if (v!=null)
if (document.getElementById(v)) return document.getElementById(v)
else return false;
} catch(e) {
return false;
}
}
function h(v) {
if (v!=null) {
var targ = null;
if (v['target']['name'] == 'rightBtn') targ='right';
else targ='left';
if ($(targ).style.display=='none') {
$(targ).style.display='block'
if (targ=='right') $('center').style.marginRight='210px'
else $('center').style.marginLeft='210px'
} else {
$(targ).style.display='none'
if (targ=='right') $('center').style.marginRight='0px'
else $('center').style.marginLeft='0px'
}
}
}
var menu = $('nice-menu-1')
var Btn = document.createElement('a');
Btn.addEventListener('click', h, false);
Btn.name = 'rightBtn';
Btn.appendChild(document.createTextNode('Right') );
var rightLI = document.createElement('li');
rightLI.className = 'menuparent menu-path-node-00';
rightLI.appendChild(Btn);
menu.appendChild(rightLI);
var Btn = document.createElement('a');
Btn.addEventListener('click', h, false);
Btn.name = 'leftBtn';
Btn.appendChild(document.createTextNode('Left') );
var leftLI = document.createElement('li');
leftLI.className = 'menuparent menu-path-node-00';
leftLI.appendChild(Btn);
menu.appendChild(leftLI);
if ($('mce_editor_0')!=false)
{
var e = $('mce_editor_0').contentDocument;
var eb = e.body;
eb.style.minWidth='0';
}

