if everything fails: add NZB-ID bookmark

Got a program that plays well with SABnzbd? Share it here!
Post Reply
guru1968
Newbie
Newbie
Posts: 11
Joined: July 8th, 2009, 6:11 pm

if everything fails: add NZB-ID bookmark

Post by guru1968 »

Hello,
if none of all those nice addons work on your special (mobile) device, you might wanna give my neat little javascript a try, just save it as a bookmark and activate it whenever you view a newzbin report in your browser - should work on every javascript enabled device
(inspired by the "Send to HellaWorld" bookmarklet)

javascript:t=document.title;if(t.indexOf('Newzbin - Report')!=-1){location.href=':/sabnzbd/api?ma_username=&ma_password=&apikey=&mode=addid&name='+t.match(/[0-9][0-9]*/);}else{void(0);}

just replace the with the values needed by your sabnzbd+ server, save this line as the URL of your bookmark and off you go!

-> it will echo "ok" if the ID was successfully added to your sabnzbd+ queue, error-message otherwise...
guru1968
Newbie
Newbie
Posts: 11
Joined: July 8th, 2009, 6:11 pm

Re: if everything fails: add NZB-ID bookmark

Post by guru1968 »

well :-((

I should have tried this first on my own mobile device before posting here :-((
on the desktop PC this works flawless, but my htc Magic does not like this bookmark, it converts it on its own to start with "http://javascript/:t=..."

is there any trick to make it accept this bookmark?? where does Android store the default browser bookmarks? can those be edited by let's say a standard text editor?


p.s.
well - with "Opera mini" it works quite well on my Magic; but Opera kind of sucks compared to the default browser...
Last edited by guru1968 on July 12th, 2009, 8:34 am, edited 1 time in total.
Post Reply