MozillaZine

[Ext] ThumbsDown 0.22.5 - Bulk image downloader - 2016-03-28

Announce and Discuss the Latest Theme and Extension Releases.
nick_br
 
Posts: 4
Joined: January 29th, 2013, 11:35 am

Post Posted January 29th, 2013, 12:05 pm

First, great add-on, keep up the good work! :)

Second, I'm trying to figure out, how to use a custom script with redirect. (The page, for which I need it, has thumbnails, which link to a page with a resized version, i.e. xyz.jpg.html, but for the full sized image, I have to add a query string to that url, i.e. xyz.jpg.html?g2_imageViewsIndex=1). The user guide tells me the following: "Hands over image URL resolving task to another script." Now how is this "other" script determined? Or how can I specify/write this "other" script? Nevertheless I gave it a try and all i got was "Error: REDIRECT() is not supported".

nick_br
 
Posts: 4
Joined: January 29th, 2013, 11:35 am

Post Posted January 29th, 2013, 3:42 pm

Stupid me. Didn't need redirect at all. Just concatinated the query string to the url when loading the document during case 0. Rest worked quite will with XPATH.

Nevertheless, would still be nice to know, how exactly redirect works.

ake79
 
Posts: 1344
Joined: February 17th, 2007, 6:05 am

Post Posted January 30th, 2013, 11:36 am

REDIRECT() was originally designed to help with "frame wrap image hosts". That is, "image hosts" that wrapped other image hosts in html frame in order to show ads of their own.

Basically you would have script for that proper image host (A) and another script with REDIRECT() for that frame wrap image host (X). X script would find out where the frame url points and REDIRECT() it. ThumbsDown would then look up script A based on that frame url and use it as the link url for script A. No need to duplicate the logic for A in script X, just redirect to it. This was especially helpful when X randomly used 2 different image hosts in its frame.

Anyway, I removed the support for REDIRECT() sometime during development of 0.21 when I rewrote parts of the script evaluation code. I haven't run into these frame wrap image hosts in a while, so I haven't had the need restore it. If there's a need for REDIRECT(), file a bug.

(I updated the Custom script function section in User Guide.)
My extensions: Save File to | ThumbsDown

nick_br
 
Posts: 4
Joined: January 29th, 2013, 11:35 am

Post Posted February 16th, 2013, 1:26 am

I created another firefox profile. After installing thumbsdown, I can't access my scripts on the other profile. Where are these stored, so I can copy/move my scripts to the other profile?

ake79
 
Posts: 1344
Joined: February 17th, 2007, 6:05 am

Post Posted February 16th, 2013, 2:03 am

Scripts are stored in profile folder in thumbsdown.sqlite file. Just copy the file to another profile. Firefox restart may be required.
My extensions: Save File to | ThumbsDown

nick_br
 
Posts: 4
Joined: January 29th, 2013, 11:35 am

Post Posted February 16th, 2013, 3:12 am

Worked like a charm! Thanks a lot!

ake79
 
Posts: 1344
Joined: February 17th, 2007, 6:05 am

Post Posted March 16th, 2013, 3:35 am

Release 0.22 - ChangeLog - Download

* Fixed issue 17 - Support DownThemAll! 3.0 (first betas are out).
* Added image guessing to Script Wizard.

EDIT: Released 0.22.1. Only translation were updated.

EDIT2: Released 0.22.2. Fixed breakage caused by API changes.
Last edited by ake79 on April 1st, 2015, 8:44 am, edited 3 times in total.
My extensions: Save File to | ThumbsDown

kirkley
New Member
 
Posts: 1
Joined: May 21st, 2013, 8:23 pm

Post Posted May 21st, 2013, 8:25 pm

Anyone have any experience running this will google images? I can't for the life of me figure out the regex. Played with the regex, and got a nice way to parse html:

(?<=imgurl=).*?(?=&)

but the expression wont work in thumbsdown...

kbblume
 
Posts: 2
Joined: July 4th, 2013, 9:32 am

Post Posted July 4th, 2013, 10:01 am

Let me start by saying that this is a great extension =D>

I am currently using 0.22.2 with Firefox portable. Previously I had successfully used Thumbsdown with the regular Firefox. Now everything seems to set up OK as I have created the necessary script, but I cannot select any thumbnails, either using select all or individually, after I activate Thumbsdown for the current tab. The only possible issues that I see are: (1) that script runner is not showing the created script, although it shows in script manager and (2) that I am running Noscript, although I have Noscript set to allow all scripts on the page.

What am I missing? I have reviewed the user guide and cannot find anything I have failed to do and I cannot find anything in the forum related to this issue.

Thanks for any help that anyone can provide.

ake79
 
Posts: 1344
Joined: February 17th, 2007, 6:05 am

Post Posted July 5th, 2013, 2:21 am

Thanks.

I installed Portable Firefox to hard drive and tried to download the 3 images from ThumbsDown User Guide's "Direct" section [1]. It worked fine.

So, try if you are to able to download those same 3 images. You can create the script using Script Wizard.

If that worked, are you 100% sure that your original script is correct? Does it work in normal Firefox?

If all else fails, install Console2 [2] (Tools > Web Developer > Error Console), toggle on all errors and see if there's anything relevant.

[1] https://code.google.com/p/thumbsdown/wi ... ide#Direct
[2] https://addons.mozilla.org/en-us/firefo ... ole%C2%B2/
My extensions: Save File to | ThumbsDown

kbblume
 
Posts: 2
Joined: July 4th, 2013, 9:32 am

Post Posted July 10th, 2013, 9:20 am

Ake79:

My apologies; the script was the problem, although it passed the RegExp Test Tool. When it passed the Tool, I was confident that the script was correct - bad on me. Well I learned my lesson.

Thanks

Rainbow8
 
Posts: 8
Joined: March 21st, 2010, 11:28 am

Post Posted April 16th, 2014, 1:53 am

Hello!
How can i download big pictures from this gallery: http://veramundis.deviantart.com/gallery/
thumbnail link: http://th09.deviantart.net/fs71/200H/f/ ... 6sb23z.png
LargePic link: http://th09.deviantart.net/fs71/PRE/f/2 ... 6sb23z.png
BigPic link: http://fc00.deviantart.net/fs71/f/2013/ ... 6sb23z.png

the challenge is to find the right value of "fc##"
no idea how to write the expresion in such cases ...
Help me, please

ake79
 
Posts: 1344
Joined: February 17th, 2007, 6:05 am

Post Posted April 16th, 2014, 10:34 am

This worked for me:

Code: Select all
thumbsdown:{"version":7,"name":"deviantart.com","type":"regexp","subType":"thumbnail","thumbnailType":"img","thumbnailPattern":"http://th\\d+\\.deviantart\\.net/fs7\\d+/200H/\\w+/\\d+/\\d+/\\w+/\\w+/[^/]+\\.(?:png|jpg)","linkType":"normal","action1":"http://th(\\d+)\\.deviantart\\.net/fs(\\d+)/200H/(\\w+)/(\\d+)/(\\d+)/(\\w+)/(\\w+)/([^/]+)\\.(png|jpg)","action2":"http://fc$1.deviantart.net/fs$2/$3/$4/$5/$6/$7/$8.$9"}

To install the above script, copy it (it's one line) to Firefox's address bar and press Enter. Then just confirm to save it.

After that you can download images normally: http://code.google.com/p/thumbsdown/wik ... uide#Usage
My extensions: Save File to | ThumbsDown

ake79
 
Posts: 1344
Joined: February 17th, 2007, 6:05 am

Post Posted April 16th, 2014, 10:38 am

Hmm... I guess I should make new version to fix various minor broken things in the add-on caused by changes in Firefox.
My extensions: Save File to | ThumbsDown

Rainbow8
 
Posts: 8
Joined: March 21st, 2010, 11:28 am

Post Posted April 16th, 2014, 1:12 pm

ake79 wrote:This worked for me:...

YES! it works for me too! Thank you very much! =D>

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 0 guests