Tags:
ไปเจอการสร้าง firefox extension จาก link ด้านล่างนี้

Getting started with extension development

มันเป็น helloworld เห็นว่าน่าจะสร้างง่ายๆ แต่ลองแล้ว มันไม่ได้ครับ มันงงๆ

โดยผมได้ copy code ต่างๆ ที่มีอยู่ 8 ไฟล์ ด้วยกันไปวางใน Folder structure ต่างๆ ตามนี้ครับ

helloworld/
  chrome.manifest
  install.rdf
  content/
    overlay.js
    overlay.xul
    hello.xul
  locale/
    en-US/
      overlay.dtd
      hello.dtd
  skin/
      overlay.css

แล้วทำยังไงต่อล่ะ ผมไม่ทราบ
ก็เลยมีคำถาม จะถามต่อไปนี้ครับ

1. mydefaults.js มันมาได้ไง มันมี code อย่างไร ไม่มีได้หรือไม่ งง

    components/
     defaults/
      preferences/
       mydefaults.js

2. helloworld.jar จะสร้างมันได้อย่างไร
3. จะทำ Packaging ยังไงครับ (ทำให้เป็น .xpi ล่ะมัง)

ผมว่ามันอาจเป็นวิธีการสร้าง firefox extension แบบเก่าแล้วนะ แต่คิดว่ามันน่าจะทำงานได้ นะ
ปล ใครลองทดลองสร้างดู แล้วถ้าสร้างได้ มาบอกหน่อยว่าสร้างอย่างไรครับ
Get latest news from Blognone
By: Chengings
Contributor
on 30 June 2011 - 17:57 #305809
Chengings's picture

ลองดู Mozilla Builder and SDK ง่ายกว่าแถมได้ส่วนขยายแบบไม่ต้องเริ่ม Firefox ใหม่


หมาไฟ

By: iknowpython on 30 June 2011 - 22:15 #305925

ทำยังไง

สอนหน่อยซิครับ

By: iknowpython on 1 July 2011 - 11:16 #306155
ผมสร้างได้แล้วครับ

ดีใจมากเลยครับผม