Hide the sidebar

Adds a button in the tabmenu that toggles the sidebar visibility

目前为 2015-01-04 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Hide the sidebar
  3. // @namespace https://greasyfork.org/users/5174-jesuis-parapluie
  4. //
  5. // @description Adds a button in the tabmenu that toggles the sidebar visibility
  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.2
  15. // ==/UserScript==
  16.  
  17.  
  18. $(function ()
  19. {
  20. $(".tabmenu").append($('<li>', {html: '<a href="#">toggle sidebar</a>'}).click(function(){$(".side").toggle();})).click();
  21. $(".side").toggle();
  22. });