Cov txheej txheem:

Extract Firefox Addon Source Code: 4 Kauj Ruam
Extract Firefox Addon Source Code: 4 Kauj Ruam

Video: Extract Firefox Addon Source Code: 4 Kauj Ruam

Video: Extract Firefox Addon Source Code: 4 Kauj Ruam
Video: Build a Firefox Extension from Scratch 2024, Kaum ib hlis
Anonim
Extract Firefox Addon Source Code
Extract Firefox Addon Source Code

Cov lus qhia no yuav qhia koj yuav ua li cas rho tawm qhov chaws los ntawm ib qho Firefox addon. Nws tsis xav tau dab tsi ntau dua li ZIP cov cuab yeej rho tawm thiab cov ntawv sau yog tias koj xaiv los kho thiab rov ntim cov hauv paus.

Kauj Ruam 1: Nrhiav Addon's XPI File

Nrhiav ib qho Addon's XPI File
Nrhiav ib qho Addon's XPI File

Cov ntaub ntawv XPI yog cov addon ntim rau hauv ib daim ntawv. Koj yuav tsum tau txais cov ntaub ntawv no los ntawm lub vev xaib addons yam tsis dhia txoj cai rau hauv kev teeb tsa ib txwm muaj. Nrhiav tus addon koj xav tau ntawm lub addons site adons site, thiab tom qab ntawd nrhiav nws lub pob ntsuab teeb tsa. NETE: Qee qhov ntxiv xav tau daim ntawv tso cai pom zoo kom tau txais ua ntej. Hauv qhov xwm txheej ntawd, cov ntaub ntawv XPI tuaj yeem raug cawm los ntawm lub pob ntawm daim ntawv tso cai lees paub nplooj ntawv, thiab tsis yog nplooj ntawv addon nws tus kheej. Ua ntej tsuas yog nyem lub pob thiab kom Firefox ua, hla txoj cai thiab xaiv "Save Link As …". Thaum cov ntaub ntawv xa tawm tiav, koj yuav muaj pob addon txoj cai ntawm koj lub computer.

Kauj ruam 2: Extracting XPI File

Extracting XPI Cov Ntaub Ntawv
Extracting XPI Cov Ntaub Ntawv

Tam sim no cov ntaub ntawv nyob hauv koj lub computer, qhib koj tus kheej ZIP rho tawm hluav taws xob, thiab taw tes rau XPI cov ntaub ntawv. Qhov tseeb, XPI cov ntaub ntawv tsuas yog ZIP cov ntaub ntawv pauv npe, yog li koj tuaj yeem mus tom ntej thiab rho tawm cov ntsiab lus mus rau ib qho chaw nyob. Cov ntaub ntawv ib txwm tso tawm yog… install.jsinstall.rdf/chrome // defaults/Nrog rau cov ntaub ntawv tam sim no, koj npaj tau txav mus.

Kauj Ruam 3: Tshem Tawm Txoj Cai JAR Loj

Kev rho tawm lub ntsiab JAR Code
Kev rho tawm lub ntsiab JAR Code

Feem ntau ntawm cov lej tseem ceeb ntxiv muaj nyob hauv JAR cov ntaub ntawv pom hauv / chrome / directory. Koj yuav pom tias tsuas yog XPI yog lub npe ZIP, yog li JAR (tab sis tsawg dua). Siv tib qhov txiaj ntsig rho tawm, koj yuav tsum muaj peev xwm rho tawm cov ntaub ntawv tseem ceeb ntxiv los ntawm JAR.

Kauj ruam 4: Nws yog

Yam koj muaj tam sim no yog feem ntau ntawm cov ntaub ntawv raw los ntawm addon. Koj tuaj yeem hloov kho lawv raws li koj xav tau, thiab rov ntim lawv nrog kev hloov kho. Qhib XPI cov ntaub ntawv hauv Firefox yuav teeb tsa lawv rau koj Ib txwm hwm tus kws sau ntawv ua haujlwm, thiab xyuas kom lawv tso cai rau koj siv lawv cov cai. Tsis txhob cia li siv cov addon nrov, hloov cov qhab nia, thiab rov ua dua nws. Qhov ntawd tsuas yog nyiag.

Pom zoo: