Skip to content

Instantly share code, notes, and snippets.

@ndreas
Created February 3, 2013 19:43
Show Gist options
  • Save ndreas/4703345 to your computer and use it in GitHub Desktop.
Save ndreas/4703345 to your computer and use it in GitHub Desktop.
Userscript for redirecting from Remember The Milk's login page to home if you're already logged in
// ==UserScript==
// @name Remember The Milk login page redirector
// @description Redirects to home if you go to the login page while logged in
// @namespace http://stdin.se/userscripts/rtmredir
// @author ndreas
// @license The ISC License (http://www.isc.org/software/license)
// @version 1.0
// @include https://www.rememberthemilk.com/login/*
// @history 1.0 first version
// ==/UserScript==
;(function() {
if (document.getElementsByClassName("login-link").length <= 0) {
window.location.replace("https://www.rememberthemilk.com/")
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment