Toodledo and Google Tasks Bookmarklet that works with Gmail

Google Tasks Bookmarklet

I was a paid user of Toodledo for several years, but recently switched over to Google Tasks.

Please check out my Bookmarklet for Google Tasks by clicking here.

Recommended Android App for Google Tasks

I have been using GTasks on my Android phone for accessing Google Tasks on the go.

Toodledo Bookmarklet

If you are looking for a bookmarklet for Toodledo, please use the Official Toodledo Bookmarklet which has now been updated.

Previous Toodledo Bookmarklet info (deprecated)

As described on Toodledo.com:

“A bookmarklet is a special type of bookmark that you can put in your bookmark toolbar. It will allow you to quickly add a task from any webpage that you happen to be on. Think of it as a lightweight plugin for quickly accessing Toodledo.”

However as of December 2014, the Bookmarklet provided by Toodledo no longer works with Gmail, due to Google’s new CSP “Content Security Policy”.

I found a way to work around the problem, and created the “Toodledo Bookmarklet 2”. Please note that this bookmarklet is not affiliated with or provided by Toodledo.

Note: This new bookmarklet has been tested to work with Google Chrome and Firefox. It probably won’t work in Internet Explorer, and has not been tested in other browsers.

Install

“To install, simply drag one of the links below into your bookmark toolbar. You can rename it to something different if you want.”

Toodledo Bookmarklet 2 ← Drag this link into your bookmark toolbar.

Toodledo Bookmarklet 3 ← Drag this version to put the page’s subject into the notes field as well.

Use

“To use the bookmarklet, click on it in your bookmark toolbar. It will pop down a small window where you can quickly add a new task. After a few seconds, the URL of the page you were on will be automatically placed into the note field as a quick reference back to the page you wanted to remember.”

Source Code

Here is the code for the bookmarklet 2:

javascript:(function () {
	var t = 0;
	var w = window.open("https://www.toodledo.com/tasks/quickadd.php", "_blank",
			"toolbar=0,location=0,menubar=0,height=328,width=840");
	var f;
	var pd = "";
    f = function () {
		if (t === 6) {
			w.postMessage("note:" +
				encodeURIComponent(top.document.location.href),
				"https://www.toodledo.com");
			return;
		}
		pd += ".";
		w.postMessage("note:Please wait" + pd,"https://www.toodledo.com");
		t++;
		setTimeout(f, 500);
    };
	setTimeout(f,500);
})()

Here is the code for the bookmarklet 3:

javascript:(function () {
	var t = 0;
	var w = window.open("https://www.toodledo.com/tasks/quickadd.php", "_blank",
			"toolbar=0,location=0,menubar=0,height=328,width=840");
	var f;
	var pd = "";
    f = function () {
		if (t === 6) {
			w.postMessage("note:" +
				encodeURIComponent(top.document.location.href + "\n\n" + top.document.getElementsByTagName("title")[0].innerHTML.trim()),
				"https://www.toodledo.com");
			return;
		}
		pd += ".";
		w.postMessage("note:Please wait" + pd,"https://www.toodledo.com");
		t++;
		setTimeout(f, 500);
    };
	setTimeout(f,500);
})()

License

This code is released as Creative Commons Attribution. No warranty is given, use at your own risk.

Creative Commons License
Toodledo Bookmarklet 2 and 3 by Geoff Peters is licensed under a Creative Commons Attribution 4.0 International License.

Changelog

April 10 2015 – Added “Toodledo Bookmark 3” which will put the page’s title into the notes field as well.

January 17 2015 – Added “Please Wait…” animation and populate the URL after a longer timeout.

January 12 2015 – Expanded browser support. Now works on Chrome and Firefox.

January 10 2015 – Initial release, working on Chrome only.

14 thoughts on “Toodledo and Google Tasks Bookmarklet that works with Gmail

  1. otterbyte

    Thank you so much for this! I depended on the bookmarklet and then it failed me. You came to the rescue!

  2. Geoff Peters Post author

    @Pete, Thanks for the good suggestions. I didn’t do exactly as you requested but I created “Toodledo Bookmarklet 3” which will put the page’s subject into the Notes field as well, below the URL.

    I tried putting it into the Task/Title field but would need help from the Toodledo side in order to do it, it seems. If this is something you would like to see, please make a request of the Toodledo team themselves and give them the URL of this page, they are of course always free to contact me.

    Thanks,
    Geoff

  3. Pete

    Geoff

    Is it possible to suck the email subject out and put it in the Task field as well ?

    (I appreciate you may need 2 versions of the bookmarklet to do this as not everyone will want that).

    And … (and I’m pushing my luck here) what about a version which takes the sender of the email and puts it in the Tag field with an “@” (eg: @Pete)

    Pete

  4. Dan R

    Geoff. Thank you! I used the old bookmarklet many times per day and was disappointed when it stopped working. thanks for making this available!

    Dan

  5. Geoff Peters Post author

    Thanks Manuel for the feedback. Glad it is working for you.
    That window closing issue is something that Toodledo themselves would need to help fix if it is a desired feature.

  6. Manuel

    Hi Geoff. Thanks a lot for the bookmarklet. I’m using Firefox on a Mac. All fine but the window stays open showing a blank page instead of closing. Not a problem just one more click, i’m providing feedback.

  7. Geoff Peters Post author

    @Stienie and @cool
    > re: “I am using your Bookmarklet in Gmail on Firefox. It is opening a window and adding the task, but not the URL of the email?”

    Thanks for the feedback. I’ve just made an update to the bookmarklet to hopefully fix this problem. Please delete the bookmarklet from your browser, and try installing it again.
    – Geoff

  8. Stienie

    Hi Geoff

    I am using your Bookmarklet in Gmail on Firefox. It is opening a window and adding the task, but not the URL of the email?

  9. cool

    Geoff: “The URL of the page you were on will be automatically placed into the note field as a quick reference back to the page you wanted to remember.”

    Thanks for your efforts! When using within Gmail the URL of the selected mail does not show in the note field. Is this a bug or intended? How can one save a link to a particular email into a Toodledo task?

    Thanks for keeping the Web alive and working. :)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.