Staples Team Supervisor/Software Engineering Graduate of @flatiron-school
Published Oct 22, 2019
NOTE I only tested this on Chromium so it should work on Chrome as well and I’m reasonably certain it will work on Firefox. The only browser that may not work is Internet Explorer but let’s be honest, IE is a dumpster fire and encourage you to uninstall immediately and choose one of the browsers mentioned above.
This is the code to hide the sidebar, it also moves the friends widget over as well.
javascript:(function(){$("section.site-sidebar")[0].style.display="none"; document.getElementById('js--region-main').style.right=0; $("section.site-widget")[0].style.right=0;})();
To make the sidebar visible again you make another Bookmarklet with this code.
javascript:(function(){$("section.site-sidebar")[0].style.display=""; document.getElementById('js--region-main').style.right="236px"; $("section.site-widget")[0].style.right="263px";})();
To install the bookmarklet via drag and drop then you can follow these steps.
Hide
bookmark to hide it and the Show
bookmark to return to normal. Also you can rename them whatever you like, it doesn’t have to be what I choose.Show
and Hide
bookmarklets under that so it works like this.