Wider Google Tasks

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name           Wider Google Tasks
// @locale         en
// @description:en Makes the Google Calendar tasks window wide enough to actually use!
// @namespace      http://tomsmyth.ca
// @match          https://calendar.google.com/*
// @match          https://www.google.com/calendar/*
// @version        1.01
// @description Makes the Google Calendar tasks window wide enough to actually use!
// ==/UserScript==

setTimeout(function(){
  var TASKS_WIDTH = "250px";
  var main = document.getElementById('gridcontainer');
  var sidebar = document.getElementById('gadgetcell');
  if (main && sidebar) {
    sidebar.style.width = TASKS_WIDTH;
    sidebar.firstChild.firstChild.style.width = TASKS_WIDTH;
    main.style.width = (main.offsetWidth - 88) + "px";
  }
  document.getElementById('rhstogglecell').style.display = "none";
}, 2000);