Adding the pocket command to pentadactylrc

This commit is contained in:
Dustin Swan
2012-08-03 16:48:00 -05:00
parent 94018f272e
commit cac3633f3e
4 changed files with 5 additions and 2 deletions

View File

@@ -8,4 +8,7 @@ map gsp :js if((gs = gBrowser.tabs[0].linkedBrowser.contentWindow.wrappedJSObjec
map gs<space> :js if((gs = gBrowser.tabs[0].linkedBrowser.contentWindow.wrappedJSObject.Grooveshark) != undefined) gs.togglePlayPause();<CR>
cmap <C-c> <esc>
" Save to pocket
command! pocket -description "Save to Pocket" open javascript:(function(){ISRIL_H='ff69';PKT_D='getpocket.com';ISRIL_SCRIPT=document.createElement('SCRIPT');ISRIL_SCRIPT.type='text/javascript';ISRIL_SCRIPT.src='http://'+PKT_D+'/b/r.js';document.getElementsByTagName('head')[0].appendChild(ISRIL_SCRIPT)})();
" vim: set ft=pentadactyl: