September 18th, 2006 @ 1:36 pm
Bookmark Sync
after steve kept talking about how great google browser sync was, I decided to install it and try it out for syncing my bookmarks between my laptop and my desktop
Google Browser Sync
Google Browser Sync for Firefox is an extension that continuously synchronizes your browser settings – including bookmarks, history, persistent cookies, and saved passwords – across your computers.
I installed it on my desktop, and all was well…
but when I installed it on my laptop, which had an old “sync” of my bookmarks, google didn’t ask if I wanted to get the bookmarks from the server, or if i wanted to use the bookmarks I had as the new “set” of bookmarks, and it overwrote my bookmarks with the old set from the laptop.
needless to say, i was pissed
so i decided to re-implement the bookmark synchronizer that I had been using before
I found the newest version I could of Bookmark Synchronizer I could and starting getting my server set up
it is made to use webDAV, which I don’t really understand so I made my own php script to accept the file stream from the plugin
it uses the http PUT command, so here is my php5 script to accept file input
put.php
in my httpd.conf
Script PUT /somedir/put.php
that tells apache to use that script to answer PUT requests, and only in that directory
then I made the xbel.xml file, and chmod g+w so apache could write to it
the final step was altering the plugin’s javascript so it knew that my return code of 201 (the correct http code) was correct
i opened the jar file that the plugin created, and looked at all of the different js files until i found the error checking one, in bmsyncSettings.js
after “case 201:” at line 406, i added
return this.getString("ok");
so that it knew that the return code it got from the webserver’s put script was a success
i put that into the jar file, and now my plugin works perfectly
i also made a modified extension installer by adding my jar file to the xpi file, and editing the manifest to make note of the changes
Bookmark synchronizer SE 1.2.0.1
so…
I did this before, but i didnt note my changes, so when it came time to do it again i forgot what i did.
hopefully i will remember that i posted about it, just like i used my Gaim fixes post to fix my computer when i reinstalled XP

2 Responses to “Bookmark Sync”
I don’t think I want some of my bookmarks streaming across the internets.
By SLATE September 18th, 2006 at 1:41 pm
use https!
By justin September 18th, 2006 at 4:15 pm