Skip to content

Instantly share code, notes, and snippets.

@florianeckerstorfer
Last active August 29, 2015 14:14
Show Gist options
  • Save florianeckerstorfer/e73d3696496328d82a8e to your computer and use it in GitHub Desktop.
Save florianeckerstorfer/e73d3696496328d82a8e to your computer and use it in GitHub Desktop.
Hide Sidebar in IRCCloud

Copy the following code (or copy the content of irccloud.userscript.js) and configure a user script for *irccloud.com* in Fluid (or whatever you are using).

$('body').append('<script src="http://cdn.florian.ec/irccloud.userscript.js"></script>');
function hideHeader() {
$('#headercell').hide();
}
function hideSidebar() {
$('#sidebarwrapper').hide();
$('#mainwrapper').css('padding-right', 0);
$('#statusActions').css('padding-right', '8px');
}
function showSidebar() {
$('#sidebarwrapper').show();
$('#mainwrapper').css('padding-right', '201px');
$('statusActions').css('padding-right', 0);
}
hideHeader();
hideSidebar();
$('.statuscell .buttons').append('<button id="togglesidebar"><span>Sidebar</span></button>');
$('#togglesidebar').click(function () {
if ($('#sidebarwrapper').css('display') == 'none') {
showSidebar();
} else {
hideSidebar();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment