Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple sidebar toggle userscript for the SO Chat system
$('.sidebar-widget').each(function() {
var container = $('<div></div>'),
btn = $('<button></button>'),
that = this;
btn.on('click', function() {
container = $(this).wrap(container);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.