Welcome!  English (US) Language Switcher

QuickAdd with KeyConfig on Firefox

nickcaggiano says:

If you use the KeyConfig extension on firefox, you can create a new key to use QuickAdd from a keyboard shortcut.

1) Install KeyConfig (http://mozilla.dorando.at/keyconfig.xpi)
2) Restart Firefox
3) Tools --> Keyconfig... --> "Add a new key"
4) Name the key what ever you want. I chose "RememberTheMilkQuickAdd"
5) In code, enter (without [code] and [/code]):

[code]
var doit = function()
{
h='www.rememberthemilk.com';
p='/services/ext/addtask.rtm';

if(window.getSelection)
{
d=window.getSelection();
}
else if (document.getSelection)
{
d=document.getSelection();
}
else if (document.selection)
{
d=document.selection.createRange().text;
};
cp='http://'+h+p+'?d='+encodeURIComponent(d)+'&t='+encodeURIComponent(document.title);
w=window.open(cp,'addwindow','status=no,toolbar=no,width=475,height=260,resizable=yes');
setTimeout(function(){w.focus();}, 500);
};
doit();
[/code]

6) Click OK
7) Click Close
8) Restart firefox
9) Tools --> Keyconfig... --> RemeberTheMilkQuickAdd (or whatever you named it)
10) Assign a keystroke to this shortcut.
11) Restart and it works!

btw, you can also add a keystroke to open to a page, like RTM, with the code
[code]
loadURI("http://www.rememberthemilk.com/");
[/code]

Posted at 9:22pm on January 27, 2009

nickcaggiano says:

to open a new tab to a page:
[code]
BrowserOpenTab();
loadURI("www.rememberthemilk.com");
[/code]

Posted 5 years ago

Log in to post a reply.