Wednesday, March 19, 2008
Trying to deliberately make an uploader out of FlickrUploadr I tried to put it into a browser… as an extension/add-on/plugin.

Here’s what I did:
- get the source and extract it anywhere
- cut/copy the contents of chrome folder of the Flicker Uploader (/uploadr/MacUploadr.app/Contents/Resources/chrome) to a new folder named flickr and place it in your (~) folder
- go to your mozilla firefox folder (default ~/.mozilla/firefox/########.default/) where ######## is your profile id
- edit your extensions.ini file. add the following line
Extension##=~/mozFFfolder/yourProfile/extensions/FlickrUploadrTest
ex. Extension10=/home/roiji/.mozilla/firefox/5ca8so10.default/extensions/FlickrUploadrTest
where: ## is the next number of you extension…
mozFFfolder is where your Mozilla Firefox folder is
yourProfile is your profile id default
FlickrUploadrTest a folder which we will create later
- edit your extensions.rdf file and insert the following lines before the </RDF:RDF> tag at the bottom
<RDF:Seq about="urn:mozilla:package:root">
<RDF:li resource="urn:mozilla:package:FlickrUploadrTest"/>
</RDF:Seq>
<RDF:Description about="urn:mozilla:package:FlickrUploadrTest"
chrome:displayName="Flickr Uploadr Test"
chrome:author="roiji Mikagami"
chrome:name="FlickrUploadrTest"
chrome:extension="false"/>
- insert the chrome namespace at the top <RDF:RDF>
<RDF:RDF xmlns:NS1="http://www.mozilla.org/2004/em-rdf#"
xmlns:chrome="http://www.mozilla.org/rdf/chrome#"
xmlns:NC="http://home.netscape.com/NC-rdf#"
xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
- go to you extensions folder in you firefox and create a folder named FlickrUploadrTest
- copy/paste the chrome.manifest and chrome.manifest.prod file from your ~/flickr folder to the FlickUploadrTest folder
- edit your chrome.manifest file so that I’ll look something like this:
content uploadr file:///home/flickr/content/uploadr/
locale branding en-US file:///home/flickr/locale/branding/
locale uploadr en-US file:///home/flickr/locale/en-US/
skin uploadr default file:///home/flickr/skin/
just change the paths to your flickr folder
- paste the content of the skin/uploadr to skin and locale/en-US to locale (both in your ~/flickr folder)
- restart your firefox if ever it’s open (well it’s open, your reading this ^^,)
- go to chrome://uploadr/content/main.xul in firefox and hopefully it works with you..
if you have any questions or clarifications please feel free to post on my message board or comment here… don’t worry, i don’t bite~ hahahh
by the way, this exercise is only to RUN Flickr Uploadr on your Firefox browser… on not to actually make it WORK…
it is a step (for me) to make / try to make an uploader based on FlickrUploadr based on xulrunner…
the one I did before has Components.classes errors (UnnamedClass.classes error)… because of under priviledged code… so chrome installed files are a work around… but what if the uploader come from the net.. then it won’t be chrome installed, unless it is an xpi extension to be installed by the user….
sources: walkthrough and error