Sharing Forums

Please login or register.

Login with username, password and session length
Advanced search  

News:

Anyone want to see anything else added to the site? Just message Shaitan with your ideas.

Pages: 1 2 [3] 4 5 ... 13   Go Down

Author Topic: SabTab v2.0.1 : greasemonkey/SABnzbd hack for V3  (Read 15301 times)

0 Members and 3 Guests are viewing this topic.

healer

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #30 on: October 16, 2006, 01:57:33 AM »

could you please add support for Opera ?

others scripts on userscripts.js works correctly, but this one do not.

usually we just copy the file.js to our Java Scripts Directory, but it's not working on Opera :(

edit: i tryed with opera, but it do not runs the script cuz it finds a error on line 282

User JS compilation
Syntax error C:\Arquivos de programas\Opera 9 Beta\profile\js\newzbin-sab-addtab.js: line 282 of User JS script :
« Last Edit: October 16, 2006, 02:15:23 AM by healer »

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #31 on: October 17, 2006, 12:39:42 AM »

This script uses GM_xmlhttpRequest. It is an expanded GM version of the native javascript function XMLHttpRequest and without it the script will not work, since it is needed to talk with the SAB server. AFAIK, Opera does not support it.

I did run across an Opera userscript to emulate GM functions, but unfortunately all it did for GM_xmlhttpRequest was map it to the native version. Unfortunately that is not good enough for us. For security reasons the native version cannot make cross-domain requests. So our script, running on a v3.newzbin.com page, cannot talk to the SAB server since it is not on the same domain as the newzbin page.

max

  • Ancient
  • *****
  • Offline Offline
  • Posts: 349
Re: New greasemonkey/SABnzbd hack for V3
« Reply #32 on: October 17, 2006, 12:43:17 AM »

Update: v1.3.1

// Changes from v1.3
//    Fixed ADD confirmation prompt after V3 change

This is a cosmetic issue. The new language flag links next to the title threw off the script. It only affects the confirmation prompt wording, the correct post was still added to SAB if confirmed.

http://userscripts.org/scripts/source/5970.user.js


Thanks Yarbles for the great update!

healer

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #33 on: October 17, 2006, 02:19:47 PM »

hey yarbles, thanks for your attention

if sometime later you wanna try some alternatives, I found good tutorials on the internet:


http://fettig.net/weblog/2005/11/28/how-to-make-xmlhttprequest-connections-to-another-server-in-your-domain/
http://www.ajaxextended.com/


cya

djr

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #34 on: October 21, 2006, 02:03:44 AM »

Thanks for a top-notch userscript Yarbles. Replaced all the other ones :) +1 karma for you  8)

Sigvard

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #35 on: October 21, 2006, 03:54:32 PM »

Thanks for the awesome script, but I think it broke because I can't seem to download with it anymore, I can see it fetch the articles but after a refresh, they disappear from the queue.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #36 on: October 23, 2006, 06:17:40 AM »

@Sigvard

If you see "fetching msgid XXXXXX from www.newzbin.com" in your SAB queue (and the XXXX number is the right PostID) then SAB Tab has done it's job and the rest is up to SABnzbd, newzbin.com and your usenet servers. Try adding the post by PostID on the SABnzbd home page. If that works, but the same post does not work with SAB Tab, then please write up a more detailed description of what is happening and post it here.

However, it is possible for SAB Tab to indicate "Added post XXXX to queue" in the Tab display and not have it be added to the queue. The "added post" notification only tells you that SAB Tab sent the request for that PostID to SABnzbd and got a response, it does not confirm that the post has actually been added. I had a situation yesterday where SABnzbd was responding not adding anything to the queue from SAB Tab at all. I didn't have time to fully investigate it because the first thing I did was restart SABnzbd and then it was working fine.

daniel_owen_uk

  • Maestro
  • *****
  • Offline Offline
  • Posts: 116
Re: New greasemonkey/SABnzbd hack for V3
« Reply #37 on: October 23, 2006, 10:16:13 AM »

I found a bit of a problem with this script.

Basically I, like many others, use SABnzbD, externally as well as internally, the result of which means I need to forward a port, and more importantly password protect that SAB interface.

With previous scripts, this has also been a problem, as when you click a link to a download (or add to queue), you were displayed a page with a password prompt, after entering the password you were then take to the main sabnzbd page, but the post wasn't added.

The same happens with this script, except you aren't given the password prompt, it just says posted added (which of course it isn't), you need to log in first then use the script.

Maybe this should be a feature request for SABNZBD, a way to add password parameters in URLs?

RXP

  • Maestro
  • *****
  • Offline Offline
  • Posts: 196
Re: New greasemonkey/SABnzbd hack for V3
« Reply #38 on: October 23, 2006, 10:40:25 AM »

Yup I need this also, Ninan can parse a username/password in a URL and would be neat of SAB could do that. A way to avoid it is to log into SAB first, then the script works.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #39 on: October 23, 2006, 10:03:43 PM »

Thanks for the feedback. I only use SAB locally without uname/pwd enabled, so I will have to do a little testing to see how it works.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #40 on: October 24, 2006, 06:50:01 AM »

Update: v1.4

// Changes from v1.3.1
//   Added support for SAB login, Remove SAB Login details from browser under SAB Tab -> Config -> Clear Login

http://userscripts.org/scripts/source/6083.user.js

I've tried to make this as transparent as possible. Here is how it works:

If SAB ever throws the "login" prompt to SAB Tab, SAB Tab checks to see if it has a uname/pwd stored and if so it tries to log into SAB, if that fails it clears the stored uname/pwd, prompts you for a new one and tries again, unless you cancel the uname/pwd prompt it will keep prompting until it works.

A couple of notes:

1. Whenever you see the SAB Login prompt that means whatever action SAB Tab tried to do failed and you will have to re-do it after logging in. However, sometimes you could try an action, have it fail because you are not logged in, but not receive the prompt because the stored uname/pwd works. There is no notification in this scenario other than "added Post:..." not displaying on the TAB, so...

2. It is recommended that you at least enable useSABData if you are using a login. You can set the interval to 0 to disable auto-refreshing if you wish. With useSABData enabled SAB will be queried as soon as the page loads. That way you will either autologin or be prompted before attempting any actions.

3. If you check remember your uname/pwd anyone with access to the browser/machine you install SAB Tab on will be able to access your uname/pwd with a little work. SAB Tab will never display it in the browser, but they could modify the SAB Tab script to spit it out, or perhaps dig around in the profile on the local disc (I'm not sure how securely GM stores it). You can clear it via SAB Tab -> Config -> Clear Login. SAB TAB will continue to work until SAB itself requires a login.

4. For now you have to hit the 'Login' button in the SAB Login prompt. You cannot just hit enter after typing.
« Last Edit: October 24, 2006, 07:03:34 AM by Yarbles »

RXP

  • Maestro
  • *****
  • Offline Offline
  • Posts: 196
Re: New greasemonkey/SABnzbd hack for V3
« Reply #41 on: October 24, 2006, 08:15:46 AM »

Yarbles, you are a script stud. Moved over from Ninan soley cause of how well this script integrates with Newzbin. Shame Sab wont get a fancy web-based interface like meebo.com or the new uTorrent one. Then it'd be perfect

daniel_owen_uk

  • Maestro
  • *****
  • Offline Offline
  • Posts: 116
Re: New greasemonkey/SABnzbd hack for V3
« Reply #42 on: October 24, 2006, 12:58:35 PM »

Looks like just the ticket, not had chance to fully run it through yet, but the test that I did, it worked just as I hoped, and in under a day too, that's service for you (even posted on the sabnzbd forum too ;).

Nice work Yarbles cheers m8.

mnkykyd

  • Seasoned
  • *****
  • Offline Offline
  • Posts: 96
Re: New greasemonkey/SABnzbd hack for V3
« Reply #43 on: October 24, 2006, 03:55:14 PM »

Great stuff  ;D

So many times I've gone to newzbin, clicked a few post's 'tick-marks', only to realise later that I wasn't logged into Sab.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #44 on: October 25, 2006, 08:14:23 AM »

update: v1.5

// Changes from v1.4
//   Added Preferences dialog

Also added support for "none" post processing. but I forgot to put it in the changelog.

http://userscripts.org/scripts/source/6094.user.js

Besides the "none" post processing support this release doesn't add much functionality for existing users, unless you like to change your preferences often. However, it will make setup much easier for new users and upgrades.

The preferences dialog will appear on first run and can later be accessed via SABTab->Config->SABTab Prefs. Hover your mouse over an option for a description. Your preferences will be remembered between updates. If you want to completely remove them uninstall the script with "also uninstall associated preferences" checked.
Pages: 1 2 [3] 4 5 ... 13   Go Up