(LiveHeaders 및 방화 광과 유사) 탐색 도구 모음에 추가 버튼 (이 tutorial (Custom_toolbar_button) 기준). 이론적으로파이어 폭스 확장, 나는 파이어 폭스의 "도구 모음 사용자 정의"목록에 표시 할 수있는 버튼을 얻으려고
Customize toolbar http://iforce.co.nz/i/karfnfyi.fze.png
는 브라우저의이 부분을 사용자 정의합니다. 여기
Buttons http://iforce.co.nz/i/gtyq4tkw.3e5.png
내 button.xul 파일입니다<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css"
href="chrome://helloworld/content/button.css" ?>
<!DOCTYPE overlay>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" id="helloworld-overlay">
<script type="application/javascript" src="chrome://helloworld/content/button.js" />
<!-- Firefox -->
<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton id="custom-button-1" />
</toolbarpalette>
<!-- button details -->
<toolbarbutton id="custom-button-1" label="Custom" tooltiptext="My custom toolbar button" oncommand="CustomButton[1]()" class="toolbarbutton-1 chromeclass-toolbar-additional custombutton" />
</overlay>
와의 chrome.manifest
content helloworld chrome/
style chrome://global/content/customizeToolbar.xul chrome://helloworld/content/button.css
# Firefox
overlay chrome://browser/content/browser.xul chrome://helloworld/content/button.xul
내가 좋은 결과와 함께, XUL 탐색기에 내 button.xul을 테스트했습니다 (그것은 잘 컴파일됩니다). 어떤 이유
XUL explorer Custom Button http://iforce.co.nz/i/uq21lynt.qww.png
, 나는 내가 Firefox 용하려는이 버튼을 추가 할 단지 드릴 수 없습니다. 동일하지만와 부트 스트랩을 수행 할 다른 사람을 위해
부트 스트랩 방법이 업데이트되었습니다. 왜냐하면 나는 그것이 효과가 있다는 사실을 안다. – Noitidart
복사 붙여 넣기를 시도해보십시오.이 버튼을 추가하기 만하면됩니다. – Noitidart
숟가락으로 그 녀석에게 먹이를 주면이 녀석을 먹을 수 있으므로 스크래치 패드를 생각하지 않고 붙여 넣기를 모두 복사 할 수 있습니다. 지금 그는 붙여 넣기 부분을 복사하고 몇 가지 생각을해야합니다. – Noitidart