Wider Google Tasks

Makes the Google Calendar tasks window wide enough to actually use!

  1. // ==UserScript==
  2. // @name Wider Google Tasks
  3. // @locale en
  4. // @description:en Makes the Google Calendar tasks window wide enough to actually use!
  5. // @namespace http://tomsmyth.ca
  6. // @match https://calendar.google.com/*
  7. // @match https://www.google.com/calendar/*
  8. // @version 1.01
  9. // @description Makes the Google Calendar tasks window wide enough to actually use!
  10. // ==/UserScript==
  11.  
  12. setTimeout(function(){
  13. var TASKS_WIDTH = "250px";
  14. var main = document.getElementById('gridcontainer');
  15. var sidebar = document.getElementById('gadgetcell');
  16. if (main && sidebar) {
  17. sidebar.style.width = TASKS_WIDTH;
  18. sidebar.firstChild.firstChild.style.width = TASKS_WIDTH;
  19. main.style.width = (main.offsetWidth - 88) + "px";
  20. }
  21. document.getElementById('rhstogglecell').style.display = "none";
  22. }, 2000);