Reddit - Hide sidebar

Autohides Reddit sidebar and adds a button to toggle view

  1. // ==UserScript==
  2. // @name Reddit - Hide sidebar
  3. // @namespace https://greasyfork.org/users/5174-jesuis-parapluie
  4. //
  5. // @description Autohides Reddit sidebar and adds a button to toggle view
  6. //
  7. // @include http://*.reddit.com/*
  8. // @include https://*.reddit.com/*
  9. //
  10. // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
  11. //
  12. // @grant none
  13. //
  14. // @version 0.0.4
  15. // ==/UserScript==
  16.  
  17. $.noConflict();
  18. jQuery( document ).ready(function( $ ) {
  19. $(".tabmenu").append($('<li>', {html: '<a href="#">sidebar</a>'}).click(function(){$(".side").toggle()}));
  20. $(".side").toggle();
  21. });