2011/05/26 追è¨ï¼å ¬å¼çã®ã¢ãããã¼ãã§å¯¾å¿ãããããã§ããã
ã¯ã¦ãªããã¯ãã¼ã¯ã®ããã¯ãã¼ã¯ã¬ããã¯mixiãã§ãã¯ã«å¯¾å¿ãã¦ããã ãã©ãChromeã常ç¨ãã¦ããèªåã¨ãã¦ã¯ãæ¡å¼µã§ãã®è¾ºãæ¸ã¾ããããªãã£ã¦æã£ãã
å®è£
ããã¦ãªããªããã¯ã¦ãªã¢ã¤ãã¢ã«æãããã¨æã£ããããã§ã«æ稿ããã¦ãã
はてなアイデア - はてなブックマーク拡張もはやくmixiチェック連動に対応おねがいします!
ã§ãç»é²æ¥æã2010-09-09 21:18:46ã§ãä¸åã«å¯¾å¿ããããã«ãªãã£ãããããã£ããgithubã§å
¬éããã¦ãã£ã½ãããèªåã§å¯¾å¿ããããã¼ã£ã¦æãã«ãªã£ãã®ã§ãããã¯ãã¼ã¯ã¬ããã§é£ã°ãããã¯ã¦ãç»é²ç»é¢ã®htmlã¨è¦æ¯ã¹ããããªããé©å½ã«è¿½å ãã¦å¯¾å¿ããã¦ã¿ã¾ããã
ã©ãããå©ãã¦ãAPIã¯ããã¯ãã¼ã¯ã¬ããã¨å¤ãããªãã¿ããã§ããã©ã¼ã æ å ±ãä»å ãã¦ããã ãã§ã©ãã«ããªã£ãã
以ä¸ãä½æ¥ã¡ã¢ã
ï¼ï¼ã½ã¼ã¹ã³ã¼ããgit clone
ã½ã¼ã¹ã³ã¼ãã¯ããã§å
¬éããã¦ã
https://github.com/hatena/hatena-bookmark-googlechrome-extension
é©å½ã«git cloneããã
git clone git://github.com/hatena/hatena-bookmark-googlechrome-extension.git
ï¼ï¼ã½ã¼ã¹ã³ã¼ããæ¸ãæãã
ããã¤ãã®ãã¡ã¤ã«ã«ä¸è¨ã®ãããªç®æã追å ãã¾ã
src/background/popup.html
mixiãã§ãã¯ã«æ稿ãããã§ãã¯ããã¯ã¹ã追å ããã
231è¡ç®ã236è¡ç®ã«ä»¥ä¸ã®htmlãæ¿å
¥ã
<span> <label id="post_mixi_check_label" for="post_mixi_check" title="ããã¯ãã¼ã¯ããå 容ãmixiãã§ãã¯ã¸æ稿ããå ´åã¯ãã§ãã¯ãå ¥ãã¦ãã ããã"> <input type="checkbox" id="post_mixi_check" name="post_mixi_check" value="1" /> <span class="label-text">mixiãã§ãã¯ã¸æ稿</span> </label> </span>
src/background/popup.css
mixiã®ã¢ã¤ã³ã³ã表示ãããããã«ä»¥ä¸ã®CSSãé©å½ã«è¿½è¨ãã¦ããã¾ãã
ï¼äºåã«http://b.st-hatena.com/images/icon-mixi.pngã/images以ä¸ã«ãã¦ã³ãã¼ããã¦ããã¾ãï¼
#post_mixi_check_label .label-text { background-image: url(/images/icon-mixi.png); }
ãã¶ã¤ã³ãæããããã«606è¡ç®è¾ºãã«ãã
#post-twitter-label .label-text, #private-label .label-text{ background: -2px 50% no-repeat; padding-left: 14px; }
ã¨ããé¨åã
#post-twitter-label .label-text, #private-label .label-text, #post_mixi_check_label .label-text { background: -2px 50% no-repeat; padding-left: 14px; }
ã¨ãã風ã«æ¸ãæãã¾ããã
ï¼ï¼ã¤ã³ã¹ãã¼ã«ãã
æå¾ã«ããªãã¿chrome://extensions/ã§æ¡å¼µæ©è½ãè¨å®ãã¾ãã
å
ã®ã¯ã¦ãªããã¯ãã¼ã¯æ¡å¼µã念ã®ãããç¡å¹ã«ãããã§ç¡å¹ã«ãã¦ããã¾ãã
ãããã±ã¼ã¸åããã¦ããªãæ¡å¼µæ©è½ãèªã¿è¾¼ã¿ã¾ãããæ¼ãã¦ãsrcãã£ã¬ã¯ããªãæå®ããã°å°å
¥å®äºã§ãã
ãç²ãæ§ã§ããã
ããã§ãChromeæ¡å¼µãããæ°è»½ã«mixiãã§ãã¯åºæ¥ãããã«ãªãã¾ããã