Forums

Discuss all things Remember The Milk.

menu

adding source URL to "add to RTM!" bookmarking feature

carnicer says:
hi, i'm a new user, registered yesterday. i have registered because of the "add to RTM!" feature on the bookmarks toolbar (add tasks from the web), i thought it could be very useful to me. but i find it lacks something.

i think it would be very useful to add the source URL to the task (i.e., the URL from where you are bookmarking). in order not to break everything, perhaps this could be done as a note. simply adding a checkbox "add this URL as a note" on the bookmarking popup / form.

what do you think? would it be useful? easily implementable?
Posted at 10:37am on February 3, 2009
raymond.bergmark Power Poster says:
You need this bookmarklet, works in IE and Firefox at least (remove the _ in java_script, save as bookmark URL):

java_script:(function(){h='m.rememberthemilk.com';p='/add';if(window.getSelection){t=window.getSelection();}else%20if(document.getSelection){t=document.getSelection();}else%20if(document.selection){t=document.selection.createRange().text;};cp='http://'+h+p+'?name='+((null==t||t==""||t==undefined)?encodeURIComponent(document.title):t)+'&url='+encodeURIComponent(location.href);w=window.open(cp,'addwindow','status=no,toolbar=no,width=250,height=560,resizable=yes');setTimeout(function(){w.focus();},500);})();

It uses the mobile site so you will have to log in once there.
Posted 16 years ago
carnicer says:
wow! pretty impressive. used firefox 3 under linux. actually, i had not realized tasks have a URL field. thanks so much :)

(it took me a while to figure out i had to edit the bookmark and replace the text by the one you provided - this is not a complain)
Posted 16 years ago
raymond.bergmark Power Poster says:
I should also mention that if your select some text before clicking the bookmarklet the task name is set to that text. Otherwise the task name is set to the web page title.
Credit to ryankennedy who added the final touches to this java_script.
Posted 16 years ago
(closed account) says:
This is a superb little tool, and will be very useful for me, Thanks!
Posted 16 years ago
bjbernard says:
this is great! any idea how to open this in the firefox sidebar instead of in a new window?
Posted 16 years ago
buckbrody says:
I am struggling to get this to work. Exactly what should I be using as the URL?
Posted 16 years ago
raymond.bergmark Power Poster says:
Create a normal bookmark, edit it and use the whole text block starting with java_script above, ending with 500);})();
Remove the _ in java_script.
Posted 16 years ago
mildfuzz says:
this is much better than the real deal, why don't they just swap it over?
Posted 16 years ago
(closed account) says:
Huge improvement - thanks for posting this!
Posted 16 years ago
fenwick.justin says:
Incredible! FYI you paste the javascript into your address bar and add it as a favorite, capturing the javascript, not the link.

It catches the web address and highlighted text!
Posted 15 years ago
(closed account) says:
Thank you! Saves a lot of time.
Posted 15 years ago
juliakm says:
In case anyone is still stuck, the following works in Firefox 3:

#(function(){h='m.rememberthemilk.com';p='/add';if(window.getSelection){t=window.getSelection();}else%20if(document.getSelection){t=document.getSelection();}else%20if(document.selection){t=document.selection.createRange().text;};cp='http://'+h+p+'?name='+((null==t||t==""||t==undefined)?encodeURIComponent(document.title):t)+'&url='+encodeURIComponent(location.href);w=window.open(cp,'addwindow','status=no,toolbar=no,width=250,height=560,resizable=yes');setTimeout(function(){w.focus();},500);})();
Posted 15 years ago
stoweboyd says:
I got this working. Thanks.
Posted 15 years ago
wernight says:
What about RTM add the feature of setting "url" field of the task? As carnicer said, there could be checkbox - is there any reason not to copy the url? yes probably sometimes.

Another way could be like http://www.rememberthemilk.com/forums/ideas/9448/
Posted 15 years ago
(closed account) says:
Anyone know how I can make this script work in Chrome? I can't get the URL to capture.
Thx
Posted 15 years ago
This idea is considered similar to "Add URL field", and all votes have been transferred to that idea.