Jump to content
Ketarin forum

Firefox Addons template


Stalker
 Share

Recommended Posts

Please note that this template does not work with addons which require you to either log in or accept a license.

 

<?xml version="1.0" encoding="utf-16"?>
<Jobs>
 <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <DownloadBeta>Default</DownloadBeta>
   <DownloadDate xsi:nil="true" />
   <CanBeShared>true</CanBeShared>
   <ShareApplication>false</ShareApplication>
   <HttpReferer />
   <Variables>
     <item>
       <key>
         <string>addon_id</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>Textual</VariableType>
           <Regex />
           <Url></Url>
           <TextualContent>1865</TextualContent>
           <Name>addon_id</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>version</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>StartEnd</VariableType>
           <Regex />
           <Url>https://addons.mozilla.org/en-US/firefox/addon/{addon_id}</Url>
           <StartText>title="Permanent link to this version">Version </StartText>
           <EndText></a></EndText>
           <Name>version</Name>
         </UrlVariable>
       </value>
     </item>
     <item>
       <key>
         <string>filename</string>
       </key>
       <value>
         <UrlVariable>
           <VariableType>RegularExpression</VariableType>
           <Regex>(?<=/en-US/firefox/downloads/file/\p{N}*/).*\.xpi(?=")</Regex>
           <Url>https://addons.mozilla.org/en-US/firefox/addon/{addon_id}</Url>
           <Name>filename</Name>
         </UrlVariable>
       </value>
     </item>
   </Variables>
   <ExecuteCommand />
   <Category>Firefox Addons</Category>
   <SourceType>FixedUrl</SourceType>
   <DeletePreviousFile>true</DeletePreviousFile>
   <Enabled>true</Enabled>
   <FileHippoId />
   <LastUpdated xsi:nil="true" />
   <TargetPath>{DEST_DIR}\{category}\{appname}_{version}.{url:ext}</TargetPath>
   <FixedDownloadUrl>http://releases.mozilla.org/pub/mozilla.org/addons/{addon_id}/{filename}</FixedDownloadUrl>
   <Name>AdBlock Plus</Name>
 </ApplicationJob>
</Jobs>

 

Variables you need to modify:

addon_id

Type: local

Content: ID of addon on Firefox Addons site.

Example: hxxps://addons.mozilla.org/en-US/firefox/addon/7661

 

DEST_DIR

Type: global

Content: Destination directory of the download

Example: D:\Distrib

Additional info: You can modify the save path as you see fit.

Edited by Stalker
Link to comment
Share on other sites

  • 4 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.