Evernote + Tombloo ãã§ã£ã¡ä¸ãã件
ããããã§ã£ã¡ããããã®é£ç¶ãã¹ããããã¨æãã
Tomblooã«è¯ããä¸è©±ã«ãªã£ã¦ããã®ã§ãããEvernoteã«POSTããã¡ãã¥ã¼ãç¡ãã£ãã½ãã®ã§
ãã¡ãã¨
http://d.hatena.ne.jp/Constellation/20080726/1217088917
tombloo æ¬å®¶ãåèã«
http://wiki.github.com/to/tombloo
Evernote対å¿ã®ã¹ã¯ãªãããä½ã£ã¦ã¿ã¾ãããåºæ¬çã«Evernoteã®bookmarkletããã¼ã¹ã«ä½ã£ãã®ã§ãregular, quote, link ä½ããã¾ã¨ãã«åããªãã¨æãã¾ãã
å®å ¨ã«é°å²æ°ã ãã§ä½ã£ãã®ã§ãã¸ããªæ¸ãæ¹ã«ãªã£ã¦ãã¨æãã¾ããã容赦ãã ãããã¤ãã«ãã¨ãªã£ã¦ãã£ããåçã¯ãã¦ãªãã
ä¸è¨ã¹ã¯ãªãããã20_Evernote.jsãã¨ãããã¡ã¤ã«åã§ããã¼ã«ã«ã«ä¿åãã¦ãFirefoxã®ãããã¡ã¤ã«ã®,tomblooç¨ã®æ¡å¼µã¹ã¯ãªãããç½®ããã©ã«ãã«è¨ç½®ãã¦FFãåèµ·åããã°ãtomblooã®ã¡ãã¥ã¼ã«Evernoteã表示ãããã¨æãã¾ãã
åã®WinXPãã·ã³ã§ã¯ãããªæãã®ãã©ã«ãã§ãã
C:\Documents and Settings\[USERNAME]\Application Data\Mozilla\Firefox\Profiles\[PROFILENAME]\tombloo\script [USERNAME] => ã¦ã¼ã¶ã¼ã¢ã«ã¦ã³ãå ãå ¥ãã¾ã [PROFILENAME] => ã©ã³ãã ãªæååã£ã½ããããã¡ã¤ã«åãå ¥ãã¾ãã
å®è¡ã¹ã¯ãªãããªã
if(typeof(models)=='undefined') this.models = models = new Repository(); models.register(update({ name : 'Evernote', ICON : 'http://www.evernote.com/about/media/img/favicon.ico', POST_URL : 'http://www.evernote.com/clip.action', check : function(ps){ return (/(regular|quote|link|conversation|video)/).test(ps.type) && !ps.file; }, post : function(ps){ var Evernote = this; return Evernote.getToken(ps).addCallback(function(token){ var content = { notebookGuid: token.notebookGuid, __fp: token.fp, _sourcePage: token.sourcePage, url: (ps.itemUrl) ? ps.itemUrl : 'no url', title: (ps.item) ? ps.item : 'no title', comment: ps.description, body: ps.body, tags: ps.tags ? ps.tags.join(',') : '', fullPage: ps.body ? 'true' : 'false', saveQuicknote: 'save', format: 'microclip' }; return request(Evernote.POST_URL, { redirectionLimit : 0, sendContent : content, }); }); }, getAuthCookie : function(){ return getCookieString('evernote.com', 'auth'); }, getToken : function(ps){ var Evernote = this; switch (this.updateSession()){ case 'none': throw new Error(getMessage('error.notLoggedin')); case 'same': case 'changed': var self = this; return request(Evernote.POST_URL, {sendContent: {format: 'microclip', quicknote: 'true'}}).addCallback(function(res){ //noteBookGuide if(res.responseText.match(/selected="selected" value="(.*)"/)){ self.noteBookGuide = RegExp.$1; }else{ throw new Error(getMessage('error.notLoggedin')); } //_sourcePage if(res.responseText.match(/"_sourcePage" value="(.*)"/)){ self.sourcePage = RegExp.$1; }else{ throw new Error(getMessage('error.notLoggedin')); } //__fp if(res.responseText.match(/"__fp" value="(.*)"/)){ self.fp = RegExp.$1; }else{ throw new Error(getMessage('error.notLoggedin')); } return self; }); } }, }, AbstractSessionService));
æ¬å½ã¯GitHubçµç±ã§ãæ¬å®¶ã«åãè¾¼ãã§ããããããã«ããã®ãçã ã¨æããã©ãã¾ã gitå«ã使ãæ¹ãè¯ãåããããã£ãã®ã§ãããããããã¼ãã¦ããã¾ããã
http://d.hatena.ne.jp/brazil/20080804/1217856808
追è¨:2010/01/10 ä¸è¨id:bardiche-assaultããããé ããfaviconã®URLãä¸è¨ã½ã¼ã¹ä¸ã§å¤æ´ãããã¾ããããé£çµ¡ãããã¨ããããã¾ãã