Skip to content

Instantly share code, notes, and snippets.

@justinoboyle
Created September 23, 2019 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinoboyle/2f6f94a60585e83c3b5e21f2ae95533e to your computer and use it in GitHub Desktop.
Save justinoboyle/2f6f94a60585e83c3b5e21f2ae95533e to your computer and use it in GitHub Desktop.
Google Tasks Unlocker UserScript
// ==UserScript==
// @name google tasks
// @match https://tasks.google.com/*
// @grant none
// ==/UserScript==
// Just go to tasks.google.com. Installing as a shortcut works too.
if(Object.values(document.getElementsByTagName('p')).map(a=>a.innerText).join(' ').includes('The requested URL was not found on this server. '))
window.location.href="https://tasks.google.com/embed/?origin=https://calendar.google.com&fullWidth=1"
var s = document.createElement('style');
s.textContent = 'body { display: inline !important }';
document.head.appendChild(s);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment