Stalker Posted January 16, 2009 Report Share Posted January 16, 2009 (edited) 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 January 16, 2009 by Stalker Link to comment Share on other sites More sharing options...
somerandomhash Posted February 11, 2009 Report Share Posted February 11, 2009 Just what I was after thanks :-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now