Page 1 of 2

Safari 5 Extension?

Posted: June 10th, 2010, 8:33 am
by jubei
Wish I knew CSS/HTML I would write one myself.  The extensions in Safari 5 are great.  Is anyone working on a SAB Plugin?

Re: Safari 5 Extension?

Posted: June 10th, 2010, 11:27 am
by nomar383
I want to, but I've been putting all my efforts into NZBpad for the iPad. Hopefully someone creates a Safari 5 Extension soon!

Re: Safari 5 Extension?

Posted: June 10th, 2010, 11:58 am
by wyd1
Maybe someone could port the firefox version  :)

Re: Safari 5 Extension?

Posted: June 10th, 2010, 12:34 pm
by nomar383
Are the firefox or chrome versions open source? I might make a quick port if one of them is.

Re: Safari 5 Extension?

Posted: June 10th, 2010, 12:53 pm
by jubei
I think the Chrome one would be easiest to port since they're both Webkit browsers...Good question on whether or not they're open source, lemme check.  

EDIT
As per: https://chrome.google.com/extensions/de ... hplifocfgp

The source code is released under GPLv2 or later and can be found here:
http://code.google.com/p/sabconnect/
/EDIT

It's open source!

Re: Safari 5 Extension?

Posted: June 10th, 2010, 2:34 pm
by nomar383
I have no idea whether the dev plans to support safari, so I don't want to get too commited. However, looking over the source and Apple's conversion from chrome documentation, I think I could make a quick and dirty port. If I get some time at work today, then I'll see what I can come up with.

Re: Safari 5 Extension?

Posted: June 10th, 2010, 3:39 pm
by jubei
Thanks Nomar....btw, bought your app for my iPad...digging it.  Thanks for your hard work.

Re: Safari 5 Extension?

Posted: June 10th, 2010, 5:06 pm
by nomar383
jubei wrote: Thanks Nomar....btw, bought your app for my iPad...digging it.  Thanks for your hard work.
Thanks! That project is a lot of fun to work on :)

Anyways, I have converted some of the source to work as a Safari Plugin. You won't have the little popup on this first release, but everything else should work (ie the click to add functionality). I can't build the extension and do any testing here at work, but when I get home I'll give it a shot and put it up on my sever for download if it works. I will also post the source code (not that it's much different than the chrome version).

Re: Safari 5 Extension?

Posted: June 10th, 2010, 8:45 pm
by jubei
yeah all I really care about is the click to add functionality.  I don't use the rollover as much as I should.  thanks again!

Re: Safari 5 Extension?

Posted: June 10th, 2010, 10:06 pm
by nomar383
Well I have nzbmatrix working. However, it's all very inefficient and I can't get the settings input to work quite yet (I've hard-coded my own into the script). This might take a few days to churn something useable out haha

Re: Safari 5 Extension?

Posted: June 10th, 2010, 11:44 pm
by emtee
A library for porting Chrome extensions to Safari can be found here: http://safariadblock.com/

Re: Safari 5 Extension?

Posted: June 11th, 2010, 1:59 am
by nomar383
Fair warning: this is a VERY rough port.

*You can put in your server address and api key in the settings.
*NZBMatrix is the only supported site (I'm too tired to work out the others at the moment)
*No popup dialog
*You will not see a little green icon after you hit the add button

I will add the other indexing services in tomorrow if I get a chance. I'm working on getting some of the other feature in too, but I really need to focus on my iPad app :)

Anyways, I have linked to the extension below. I'll post updates here as I have time. I'll also post the source after the next version (it looks pretty gross right now).

VERSION 0.1:
http://sabconnect-safari.kalenhansen.com

Re: Safari 5 Extension?

Posted: June 11th, 2010, 8:49 am
by jubei
Nomar,
You killed it bro!  Thank you!  Working for me on NZBMatrix.  Doesn't pick up the categories yet (I think the chrome add on did) but otherwise, very good!

I've been a huge fan of Google Chrome for about 8 months now but now that Safari has extensions, I think it might be my full time browser.

Re: Safari 5 Extension?

Posted: June 11th, 2010, 10:36 am
by nomar383
I've almost got NZBs.org working. It keeps adding the same NZB like 40 times though after I click the button :)

Re: Safari 5 Extension?

Posted: June 11th, 2010, 5:08 pm
by wyd1
nomar383 wrote: Fair warning: this is a VERY rough port.

*You can put in your server address and api key in the settings.
*NZBMatrix is the only supported site (I'm too tired to work out the others at the moment)
*No popup dialog
*You will not see a little green icon after you hit the add button

I will add the other indexing services in tomorrow if I get a chance. I'm working on getting some of the other feature in too, but I really need to focus on my iPad app :)

Anyways, I have linked to the extension below. I'll post updates here as I have time. I'll also post the source after the next version (it looks pretty gross right now).

http://dl.dropbox.com/u/7831344/SABConn ... safariextz
That was exactly what I needed. Thank you so much!  :)