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 ... 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.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
SabTab v2.0.1 : greasemonkey/SABnzbd hack for V3
« on: September 19, 2006, 07:59:32 PM »




This hack adds a SAB Tab to the Newzbin main menu along the top of the screen.

Version 2 requires SABnzbdPlus 0.3.0 or greater. If you are using an older version or the original SABnzbd than using the old version linked below.

This link should always point to the latest version: http://userscripts.org/scripts/show/20689
 
Old Version (needed if using SABnzbd 0.28 or below): http://userscripts.org/scripts/show/6094

Features:

Get SABnzbd info:
  - The SabTab will optionally display your downoad speed, queue size, and free disc space with a user defined update interval
  - You can optionally have your SAB queue displayed under the SabTab->Queue submenu. It is updated every time you open the Queue menu, without reloading the current page
  - Optionally SabTab will mark reports found in your SAB history and/or queue by fading them out in report lists
  - Pause/Resume or shutdown SAB from SabTab
  - Link directly to any SAB page from the the SabTab menu

Add Reports to SAB:
  - From any Report or Nfo page you can add the report to you queue with SabTab->Add to Queue, or select a specific add method from the submenu.
  - From any report list (bookmarks, category, search results) you can check off the reports you want and use the SabTab menu to add it to the list, or
  - You can check off the reports and Click the Add to SAB link placed at the top and bottom of report lists, or
  - with one click of the green "complete" checkmark you can add a single report, with optional confirmation to prevent accidental additions
  - You can set the default add method SabTab uses under SabTab->Config->SabTab Prefs

Use with a password protected SAB:
  - If SabTab ever encounters a SAB login prompt it will prompt you and optionally remember the password to use automatically the next time it is prompted.
   (Unfortunately if SabTab encounters a login prompt whatever operation it was performing fails, so if you use a stored password it is recommended that you enable SAB Data on the tab to ensure SAB is unlocked before any add operation is attempted.)
  - You can clear your password from SabTab using SabTab->Config->Clear Login

Miscellaneous features:
  - Easy to configure from it's own preference panel under SabTab->Config-SabTab Prefs
  - Preferences and settings are retained between updates
  - The SabTab can put to the left or right of the normal Newzbin tabs or shift all the tabs to the left for low resolution windows.

« Last Edit: March 17, 2008, 01:42:13 PM by Yarbles »

max

  • Ancient
  • *****
  • Offline Offline
  • Posts: 349
Re: New greasemonkey/SABnzbd hack for V3
« Reply #1 on: September 20, 2006, 07:34:07 AM »

Awesome!

This program seems to be really taking off!

If it was $50 I would easily pay that to get my hands on SABnzbd.

alext

  • Padawan
  • **
  • Offline Offline
  • Posts: 13
Re: New greasemonkey/SABnzbd hack for V3
« Reply #2 on: September 20, 2006, 10:11:11 AM »

Nice indeed.

mnkykyd

  • Seasoned
  • *****
  • Offline Offline
  • Posts: 96
Re: New greasemonkey/SABnzbd hack for V3
« Reply #3 on: September 20, 2006, 01:51:12 PM »

Bravo....
Very nice script,
I was just using the oneclick & give newzbin a sabnzbd header, but that lacked a option for adding stuff from a post page
Plus I really like the stats on the newzbin page (Although I haven't added it yet)

Alchemyst

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #4 on: September 20, 2006, 07:16:56 PM »

Now that is ruddy fantastic.  I've resisted the urge to get Greasemonkey as I'm loathe to add yet another extension to a list that's as long as Chelsea's dossier of tapped up players, but I think I may have to make an exception for this.
« Last Edit: September 20, 2006, 07:22:25 PM by Alchemyst »

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #5 on: September 21, 2006, 02:56:11 AM »

Update v1.1

// "Add ..." menu now available on all pages, get's check posts in lists
// "Add to SAB" link placed by "all | range | invert | none" checkbox selectors
// Gave non-SABData users the dynamic Pause menu option
// Fixed bug that had  "Add ..." submenu showing when leaving/returning to page
// Added feedback to SAB Tab to indicate adding a post
// Fixed small CSS error when moveNewzbinMenu is enabled

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

huleboeren

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #6 on: September 21, 2006, 09:04:28 PM »

That is awesome - I use the old one..
Now I cant remember where to put the .js file and theres waaay too much for me to edit before it works ^^

Alchemyst

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #7 on: September 21, 2006, 09:12:15 PM »

Yarbles,

Not sure if this possible or not, but I'll ask anyway.  Is there a way to get your script to load checked items in Usenet mode straight into Sab?  Obviously using a PostID is out of the question as in Usenet view the files may be orphans or across posts, but perhaps it could create a temporary nzb of the checked files and load that NZB up in Sab?

Would be fantastic if it could be done, and much appreciated too.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #8 on: September 21, 2006, 11:14:44 PM »

@Alchemyst
Due to security restrictions scripts cannot write to the local disc. Since the only way to add posts to SAB is by postid/url or file, I don't think it would be possible.

@huleboeren

Just go to the Tools menu and select Manage User Scripts. There you can disable or uninstall old scripts.

To install the new version just click on the link above and GM should automatically detect it is a GM script and prompt you to install it. Then go back to Manage User Scripts, select the script and click the Edit button to set your options, if you want, and save the changes.

If you just install the script as it is you won't get the SAB stats in the Tab, but all the other functions work.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #9 on: September 24, 2006, 04:47:17 AM »

Update: v1.2

//  added option to change green completion checkmark into Add to SAB link with
//   optional confirmation dialog
// updated HTML to add to main.tmpl

Normally the completion icon (green check mark) changes the view to only show complete posts. You can get the same effect by using the "filtering' dialog box in the left sidebar. So I've changed those into 1-click add to SAB links on the list view pages. Since this changes the site behavior I've added a confirmation dialog, which is also good for avoiding accidental additions in general. This confirmation only appears when using the 1-click link, since other options aren't so easy to accidentally trigger. However, you can turn it off in the options , or you can turn off the 1-click links entirely if you want.

The new HTML provides a more compact SAB Tab info bar and trims the decimal places on all but the GB readings.

example:    SAB: 312 kb/s Q: 400/400 MB  Comp: 4.20 GB

http://userscripts.org/scripts/source/5678.user.js
« Last Edit: September 24, 2006, 04:49:19 AM by Yarbles »

mnkykyd

  • Seasoned
  • *****
  • Offline Offline
  • Posts: 96
Re: New greasemonkey/SABnzbd hack for V3
« Reply #10 on: September 25, 2006, 09:20:03 AM »

The green completion checkmarks only link to javascript: void(undefined) for me..
I'm using FF 1.5.0.7 & ZoneAlarm.

Also I've set Move whole Newzbin menu over to left to true, but nothing changes.

Alchemyst

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #11 on: September 25, 2006, 06:50:14 PM »

The green completion checkmarks only link to javascript: void(undefined) for me..
I'm using FF 1.5.0.7 & ZoneAlarm.


They do for me too, but once you click on them it asks whether you want to add the post to Sab's queue. (Using FF1.5.0.7 too)

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #12 on: September 25, 2006, 07:59:54 PM »

Try this version:

v1.2.1
// rerwote to use xpath
// changed moveNewzbinMenu method
// 'add to SAB' links should not appear on usenet list views

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

I completely re-wrote the way 1-clicks were added to the page and it should either work or fail completely and not change the page. It should be faster too.

Also, when it is working the 'complete' links should read "javascript: void (123456)", where 123456 is the post ID # for that post. This doesn't actually do anything, but when you click the link my SABAddLink function fishes the postID out of the link instead of searching around the document for it.

As far as moveNewzbinMenu, I don't know why that wouldn't work, unless something like another greasemonkey script was overriding the changes. Still, I've tried a different method to make the change.

Yarbles

  • Maestro
  • *****
  • Offline Offline
  • Posts: 108
Re: New greasemonkey/SABnzbd hack for V3
« Reply #13 on: September 25, 2006, 08:14:47 PM »

The green completion checkmarks only link to javascript: void(undefined) for me..
I'm using FF 1.5.0.7 & ZoneAlarm.


They do for me too, but once you click on them it asks whether you want to add the post to Sab's queue. (Using FF1.5.0.7 too)


But is it actually adding the post? Since the add function gets the postID from the href link, I don't think it is.

Alchemyst

  • Guest
Re: New greasemonkey/SABnzbd hack for V3
« Reply #14 on: September 25, 2006, 10:41:34 PM »

The green completion checkmarks only link to javascript: void(undefined) for me..
I'm using FF 1.5.0.7 & ZoneAlarm.


They do for me too, but once you click on them it asks whether you want to add the post to Sab's queue. (Using FF1.5.0.7 too)


But is it actually adding the post? Since the add function gets the postID from the href link, I don't think it is.


Yep adds fine (v1.2)

Edit: My bad, mine doesn't say (undefined) it actually gives the postID inside.
« Last Edit: September 25, 2006, 10:43:17 PM by Alchemyst »
Pages: [1] 2 3 ... 13   Go Up