Google Readerã§ä»èªãã§ããè¨äºãbãã¼ã§ã¯ã¦ãªããã¯ãã¼ã¯ãã
Google Readerã«ã¯ã¦ãªããã¯ãã¼ã¯ãçµã¿åããã¦ä¾¿å©ã«ããGreasemonkeyã¹ã¯ãªãããã®2ã
âインストールする
- (2006.10.14 @includeã«httpsã追å , ãªã³ã¯å å¤æ´)
- (2006.10.14 Altãã¼ã®ãã§ãã¯ã追å )
// ==UserScript== // @name GR+?BKey // @namespace http://d.hatena.ne.jp/nozom/ // @description Adds short-cut key to open Hatena Bookmark in Google Reader // @include http://www.google.com/reader/view/* // @include https://www.google.com/reader/view/* // ==/UserScript== (function() { function gm_open_hatena_bookmark () { var current_entry = document.getElementById('current-entry'); var a = current_entry.getElementsByTagName('a')[0]; var h2 = current_entry.getElementsByTagName('h2')[0]; var title = ''; if (h2.firstChild == a) { title = a.firstChild.textContent; } else { title = h2.textContent; } var link = 'http://b.hatena.ne.jp/add?mode=confirm&is_bm=1&title=' + escape(title) + '&url=' + escape(a.href); window.open(link); // if you prefer to open a tab in background, you can use this alternative. // GM_openInTab(link); } function GRT_key(event) { var element = event.target; elementName = element.nodeName.toLowerCase(); var typing = false; if (elementName == "input") { typing = (element.type == "text" || element.type == "password"); } else { typing = (elementName == "textarea"); } if (typing) return true; if (String.fromCharCode(event.which) == "b" && !event.ctrlKey && !event.altKey) { gm_open_hatena_bookmark(); try { event.preventDefault(); } catch (e) { } return false; } return true; } document.addEventListener("keypress", GRT_key, false); })();
ãã¼å ¥åã®æ±ãæ¹ã¯clmemo@aka: Google Reader で新しいタブを開く Greasemonkey スクリプトãåèã«ããã
ããã¨ãGoogle Readerã«ã¯ã¦ãªããã¯ãã¼ã¯ä»¶æ°ã¨ããã¯ãã¼ã¯ç¨ã¢ã¤ã³ã³ã表示ããGreasemonkeyã¹ã¯ãªãã(ååé·ãã)ã®æ¹ã§ç´°ãããã°ãè¦ã¤ãã£ãã®ã§ä¿®æ£ããã
è²·ã£ãæ¬
- é»æhp Volume 44 ISBN:4840236488
- ããªã¢æ§ãã¿ã¦ãâã¤ã©ã¹ãã³ã¬ã¯ã·ã§ã³ / ä»éç·éª, ã²ã³ãç²é³ ISBN:4086007975
- åæ¢åµå¤¢æ°´æ¸ å¿éäºä»¶ãã¼ã (5) / ãã¬ããã, ã¯ãã¿ãããã ISBN:4063722082