Not logged in. · Lost password · Register
Forum: เกี่ยวกับ Firefox วงสนทนา RSS
เข้ามาสอนจรเข้ว่ายน้ำ
วิธีแก้ไข extension สำหรับ firefox 1.5 มาใช้ใน 2.0
Reply
Reply · Quote Jack The Ripper #1
since Sep 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
Subject: เข้ามาสอนจรเข้ว่ายน้ำ
พอดีว่า ซื้อคอมใหม่ เลยต้องไล่ตามเก็บ extension เก่าๆที่ใช้งาน ก็เลยเข้ามาบอกกล่าวสำหรับคนที่ยังไม่รู้ทริกนี้

วิธีทำก็ง่ายๆ ไม่ยุ่งยากอะไร
ขอยกตัวอย่างจาก extension ที่มีคนต้องการมากที่สุดในโลก 5555 แต่มันดันเสือกทำแค่ 1.5 แล้วก็หยุดทำไปซะงั้น ตูจับโมเองก็ได้ฟะ

Mozilla Archive Format 0.6.3
https://addons.mozilla.org/en-US/firefox/addon/212

extension ตัวนี้ ค่อนข้างมีประโยชน์มักๆ เอาไว้ save .mht หรือเปิด .mht โดยไม่ต้องง้อ ie แต่อย่างใด

.mht ดีอย่างไร ?

ดีเดะ ก็มัน save มาเป็น file เดียว แทนที่จะยกโขยงมาทั้ง dir และ html ซึ่งจัดเก็บลำบาก (สำหรับผม)




เข้าเรื่องกันต่อ
      • ชื่อ file จะอ้างอิงจาก extension Mozilla Archive Format 0.6.3 เป็นหลัก ***


เมื่อเปิด หน้า extension ขึ้นมา https://addons.mozilla.org/en-US/firefox/addon/212 สังเกตุตรงปุ่ม Install Now (Windows) แทนที่จะกดปุ่มให้มัน install เลย ช้าก่อน...
ให้เรา save link as... มาที่เครื่องเราก่อน

เมื่อมาอยู่ที่เครื่องเรา ก็จะเป็น mozilla_archive_format-0.6.3-fx+mz-windows.xpi
จับเติม .zip มันซะ จะกลายเป็น mozilla_archive_format-0.6.3-fx+mz-windows.xpi.zip

ทีนี้เราก็เปิดกับ winzip, winrar หรือ winฯลฯ ได้ ตรงนี้ผมจะอ้างอิงจากที่ผมใช้คือ winrar

มันจะมี file หลายอันอยู่ ให้เพ่งเล็งมาที่ install.rdf แค่อันเดียวพอ
จากนั้น เอา install.rdf ออกมาจาก zip ลากไปไว้ที่ไหนก่อนก็ได้ แล้วอย่ารีบปิด winrar ก่อนซะละ เดี๋ยวต้องใช้ยัดคืนอีก

เมื่อเอา install.rdf ออกมาแล้ว ให้เปิดมา edit ตรงจุดนี้ ผมใช้ wordpad เนื่องจากยังไม่ได้ลง editplus

เมื่อเปิดขึ้นมาแล้ว ให้แลหา
     <!-- Firefox -->
    <em:targetApplication>
      <Description>
        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
        <em:minVersion>1.5</em:minVersion>
        <em:maxVersion>1.6</em:maxVersion>
      </Description>
    </em:targetApplication>

     <!-- Mozilla -->  
    <em:targetApplication>
      <Description>
        <em:id>{86c18b42-e466-45a9-ae7a-9b95ba6f5640}</em:id>
        <em:minVersion>1.7</em:minVersion>
        <em:maxVersion>1.8</em:maxVersion>
      </Description>
    </em:targetApplication>

ฮั่นแน่ เอ็งแอบกั๊กเอาไว้นี่เอง ว่าสำหรับ 1.5-1.6 เท่านั้น <em:maxVersion>1.6</em:maxVersion>
ให้เรารีบเปลี่ยนในทันใด เปลี่ยนจาก 1.6 ให้เป็น 3.0 ไปเล๊ยยย หรือใครคิดว่าจะใช้ได้ยัน 9.0 ก็เอา ตามใจของท่านเถอะ

มาดูด้านล่างต่อ <em:maxVersion>1.8</em:maxVersion> อันนี้มันคือรัยวะ ช่างมันเปลี่ยนด้วย ไม่สนอยู่แล้ว จับใส่ 3.0 มันเช่นเคย
เมื่อเปลี่ยนเสร็จแล้ว ให้ save ในบัดดล แล้วปิดมันซะ

ทีนี้กลับมาที่ winrar ที่เปิดค้างอยู่ จับลาก install.rdf ที่แก้ไขแล้วมาใส่คืน เมื่อจับยัดเรียบร้อยก็ปิด winrar ซะ
แล้วจัดการเปลี่ยนชื่อจาก mozilla_archive_format-0.6.3-fx+mz-windows.xpi.zip กลับคืนเป็นไม่มี zip ซะ mozilla_archive_format-0.6.3-fx+mz-windows.xpi

เมื่อเสร็จขั้นตอนทั้งหมดแล้ว ก็ลาก mozilla_archive_format-0.6.3-fx+mz-windows.xpi มาใส่ firefox ซะ มันจะขึ้นให้ install แค่นี้ก็เรียบร้อยโรงเรียน Jack The Ripper


ปล.สำหรับคนที่ไม่รู้
อย่าลืม เอาติ๊กถูกออกจาก hide extension for known file types ที่ folder options ก่อนทำซะด้วยละ ไม่งั้นอาจจะมองไม่เห็น .zip แล้วเปลี่ยนคืนไม่ได้
Avatar
Reply · Quote ooooo (Administrator) #2
since Apr 2006 · 1240 posts
Group memberships: Administrators, Members
Show profile · Link to this post
ขอบคุณมากครับครับพี่ ที่มาเผยแพร่วิทยากิน
แล้วว่างๆจะขอเรียบเรียงมาเป็นบทความนะครับ
Reply · Quote Forsunder #3
since Apr 2007 · 36 posts · Location: In Bangkok
Group memberships: Members
Show profile · Link to this post
แล้วExtention ตัวนี้มีไว้ทำอะไรหรอครับ ช่วยบอกทีนะครับ ขอบคุณมั่กๆ
Reply · Quote Jack The Ripper #4
since Sep 2006 · 61 posts
Group memberships: Members
Show profile · Link to this post
Quote by Forsunder:
แล้วExtention ตัวนี้มีไว้ทำอะไรหรอครับ ช่วยบอกทีนะครับ ขอบคุณมั่กๆ

เอาไว้ save หน้าที่ดูอยู่

ปกติแล้ว firefox จะ save มาเป็น .html แล้วจะมี dir รูปตามมาด้วย ซึ่งมันยุ่งยากเวลาจัดเก็บ

แต่ใน ie มันจะมีเป็น save as .mht ซึ่งเป็นอย่างเดียวที่ ie ทำมาได้ถูกใจผม .mht เวลา save มา จะมี file เดียว ซึ่งมีรูปรวมอยู่ด้วยใน file เดียว ถ้าจะให้อธิบายง่ายๆก็ คล้ายๆ PDF แหละ แต่เอาไว้เปิดใน browser แต่คงความสามารถของ html เอาไว้ได้หมดทุกอย่าง


extension นี้ จะทำให้ firefox สามารถ save .mht ได้เหมือน ie และสามารถเปิดได้เหมือนกันเน้อ แต่ต้องไปแก้ไข open with นิดหน่อย ไม่งั้นมันจะตั้งดีฟอลเป็น เปิดด้วย ie
Reply · Quote T_T (Guest) #5
No profile available.
Link to this post
เหออออ search หา "mht" วิธีเซฟเป็น *.mht ใน Blog ไม่เจอ.. มาเจอใน forum แฮะ

ขอบคุณสำหรับความรู้ครับ  :09:
Avatar
Reply · Quote mrchosit #6
since Jul 2007 · 133 posts · Location: Lardprao
Group memberships: Members
Show profile · Link to this post
อยากเห็นจรเข้ตีกรรเชียงอ่ะ
เอาไปอีกอัน extension: FEBE มีตัวนี้ก็ง่ายดีครับ เลือกrestoreเป็นบางตัวก็ได้ พกติดตัวไว้ใช้นอกสถานที่
Reply · Quote anubis09 #7
User title: เด็กใหม่นะครั
since Dec 2007 · 2 posts
Group memberships: Members
Show profile · Link to this post
ผมเข้าไปโหลดไม่ได้อ่ะครับ ใครมีขอหน่อยได้ไหมครับ
Close Smaller – Larger + Reply to this post:


Smileys: :01: :02: :03: :04: :05: :06: :07: :08: :09: :10: :11: :12: :13: :14: :15: :16: :17: :18: :19: :20: :21: :22:
Special characters:
Reply
Go to forum
Unclassified NewsBoard 1.6.4 © 2003-6 by Yves Goergen
Current time: 2009-07-03, 06:08:13 (UTC +07:00)