ãã®è¨äºã§
Firebug ãããã³ã° Tips ãçºããã
Firebug に一行追記して右クリックで XPath をコピペ出来るようにする。 - IT戦記
ã¨ãè¨ã£ã¦ããã©ãã®åã«ã
å㯠Firebug ã ããããªãã¦ã
ã ãããã®æ¡å¼µæ©è½ã§ãç°¡åã«ããã§ã³ãã§ã³ããããåãã¨ããã®ããã¦ãã®ã§ãããæ¸ãã¦ã¿ã¾ãã
ãã§ã³ãã§ã³ããããåã¨ã¯
jar ãã¡ã¤ã«ã解åãã¦ããã¦ããæ¸ãæããããããã«ãã¨ããã¨ã
ããã§ã³ãã§ã³ããããåããã¨ãã¨æ°ä»ããã¨ãã«ã¡ãã£ã¨ JS ã XML ã CSS ã追å ããã ãã§ãããããæ¹é ã§ãã¦æ¥½ããã
ãã§ãã Firefox ãå£ããå¯è½æ§ããããããï¼ï¼ãã£ã¦ï¼
ãããããããã³ã»ã³ã¹ã ãã¡ã¼ã³
ãããªã®æ¡å¼µæ©è½ã®ãã£ã¬ã¯ããªãåé¤ãã¡ããã°å
éãã
Don't be scared!
iKnow!で英語。ちょっとの努力で、大きな成果を。 - iKnow!
ã¨ãããã¨ã§ãããã§ã³ããåãæé
1. Firefox ã®ãããã¡ã¤ã«ãã£ã¬ã¯ããªã«è¡ã
ç°å¢ | ãããã¡ã¤ã«ãã£ã¬ã¯ã㪠|
---|---|
WinVista | C:\Users\[ã¦ã¼ã¶å]\AppData\Roaming\Mozilla\Firefox\Profiles\[ã©ã³ãã ãªæå].default\ |
WinXP | C:\Documents and Settings\[ã¦ã¼ã¶å]\Application Data\Mozilla\Firefox\Profiles\[ã©ã³ãã ãªæå].default\ |
Mac | ~/Library/Application Support/Firefox/Profiles/[ã©ã³ãã ãªæå].default/ |
Unixç³» | ~/.mozilla/firefox/[ã©ã³ãã ãªæå].default/ |
2. æ¡å¼µæ©è½ã®å ¥ã£ã¦ããã£ã¬ã¯ããªã«ãã
extensions ãã£ã¬ã¯ããªã«æ¡å¼µæ©è½ãå
¥ã£ã¦ãã¾ãã®ã§ãããã«ç§»åãã¦ãã ããã
ãã®ãã£ã¬ã¯ããªå
ã«å
¥ã£ã¦ãä¸åä¸åã®ãã£ã¬ã¯ããªãæ¡å¼µæ©è½ã§ãã
ããããã®æç¹ã§ã¬ã¯ãã«ãªäººã¯ãã®ãã£ã¬ã¯ããªã®ä¸åãæ¶ãã¦ã¿ã¾ãããã
ããã㦠Firefox ãåèµ·åããã¨æ¡å¼µæ©è½ãä¸åæ¶ãã¦ãã¨æãã¾ãã
æ¡å¼µæ©è½ãªãã¦ãã ããã ãã®ãã¨ãªãã§ãï¼ï¼
3. ãããããæ¡å¼µæ©è½ã®ãã£ã¬ã¯ããªãæ¢ã
大æµãæ¡å¼µæ©è½ã®ãã£ã¬ã¯ããªç´ä¸ã« install.rdf ã¨ãããã¡ã¤ã«ãããã®ã§ããããéãã¦ã¿ãã¨æ¡å¼µæ©è½ã®ååãæ¸ãã¦ããã¾ãã
4. æ¡å¼µæ©è½ãã£ã¬ã¯ããªã® chrome ãã£ã¬ã¯ããªãéã
æ¡å¼µæ©è½ãã£ã¬ã¯ããªå
ã« chrome ã¨ãããã£ã¬ã¯ããªãããã®ã§éãã¾ãã
ãã£ã¬ã¯ããªã®ä¸ã« jar ãã¡ã¤ã«ããªã㦠JS ã¨ããå
¥ã£ã¦ããå ´åã¯ã
ãã®æ¡å¼µæ©è½ã¯ããã§ã³ããåãåºæ¥ã¦ãã®ã§ãããã«æ¹é ã§ãã¾ãã
試ãã«ãããã«ç½®ãã¦ãã JS ã« alert('hoge') ã¨ã追è¨ãã¦ã¿ã¾ãããã
ã¾ãã大æµã®å ´å㯠jar ãã¡ã¤ã«ãä¸åã ãç½®ãã¦ãã£ãããã¾ãã
5. jar ãã¡ã¤ã«ããã®å ´ã« zip ã§è§£åãã¾ãã
ããã¨
chrome/hoge.jar
ããããªãã¨æãã¾ãã
chrome/hoge.jar chrome/content/.. chrome/content/.. chrome/content/.. chrome/skin/.. chrome/skin/..
ã¾ããæ¡å¼µæ©è½ã«ãã£ã¦éãã¾ããããã
6. 次㫠chrome.manifest ãããã
次ã«ãchrome ãã£ã¬ã¯ããªããä¸åä¸ã«ç§»åã㦠chrome.manifest ãéãã¾ãã
ããããã¨
content hoge jar:chrome/hoge.jar!/content/ skin hoge jar:chrome/hoge.jar!/skin/
ã¨ãªã£ã¦ãã¦ã hoge.jar ã®ä¸ãè¦ãããã«ãªã£ã¦ãã¾ãã
ã§ãã®ã§ããããªæãã§æ¸ãæãã¡ãè¡ã£ã¦ãã ããã
content hoge chrome/content/ skin hoge chrome/skin/
ããããã¨ã解åãããã»ããè¦ã«è¡ãããã«ãªãã¾ãã
7. ã¯ããå®æ
ããã§ã æ¡å¼µæ©è½å
ã® JS ã¨ããæ¸ãæãããã¾ããã¾ãï¼
ãããªãã¦ããªã¼ãã ï¼
ã¦ãï¼ããæãï¼
åããªããªã£ãã chrome.manifest ãå
ã«æ»ãã°ãããã§ãï¼ï¼
8. å®ã¯ããã®æ¹æ³ã§ã Firefox æ¬ä½ã®ã»ããçµæ§ãããã¾ãã
ãã®æ¹æ³ã¯ã¡ãã£ã¨ã ããå±éºãªã®ã§èªå·±è²¬ä»»ã§ãã«ããããã¾ãã
Firefox æ¬ä½ã®ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªã«ãã㨠chrome ã¨ãããã£ã¬ã¯ããªãããã¾ãã
ããã¦ããã® ãã£ã¬ã¯ããªãã¿ã㨠browser.jar ã browser.manifest ãªã©ã®ãã¡ã¤ã«ãããã®ã§ã
åæ§ã«æ¸ãæãããã¨ã§ãã©ã¦ã¶èªä½ããã§ã³ãã§ã³æ¹é ã§ãã¡ããã®ã§ãï¼
ã¾ã¨ã
ãããã¨ãã¨ã 5 åã§ãã©ã¦ã¶ã«æ¬²ããæ©è½ãå®è£
ã§ãã¾ãã
便å©ï¼ï¼ï¼