ThumbsDown - Download All Images

1 reply [Last post]
Joined: 06/11/2009
Posts: 1
User offline. Last seen 35 weeks 4 days ago.

Buttons

Downloads all the images from tab(s) using ThumbsDown.

ThumbsDown - Download All Images
Compatibility: 

Firefox 3.0.*

Author(s): 
ake79
Description & info:

Requires Extension(s): 
ThumbsDown

Behavior

Action Behavior

Left

Download all images from the current tab.

Middle

Download all images from all tabs.

Right

Download all images from the current tab and close the tab.

Revisions

Редакция Операции
06/11/2009 - 12:10 от ake79

argh, one final tweak (hopefully)

текущая редакция
06/11/2009 - 12:07 от ake79

more minor tweaks

06/11/2009 - 12:04 от ake79

minor tweak

06/11/2009 - 11:58 от ake79

initial version

Code

javascript: Copy To Clipboard
// see initialization code

Init

javascript: Copy To Clipboard
this.setAttribute("author","Atte Kemppil");
this.setAttribute("version", "0.1");
this.setAttribute('homepage', 'http://custombuttons2.com/forum/buttons/buttons-database/thumbsdown-download-all-images.html');
this.setAttribute("dependency", "ThumbsDown 0.13");
this.setAttribute("status", "Development");
this.setAttribute("public", true);
 
this.tooltipText = "ThumbsDown\nDownload all images from\nL: Current Tab\nM: All Tabs\nR: Current Tab and Close";
 
// custom button click handler
this.setAttribute("onclick", "custombuttons.gQuot.mHandler(event, this)"); 
 
// disable context menu
this.setAttribute("context", "");
 
 
this.leftclick  = function(e) { this.downloadFromCurrentTab(); }
this.midclick   = function(e) { this.downloadFromAllTabs(); }
this.rightclick = function(e) { this.downloadFromCurrentTabAndClose(); }
 
 
this.downloadFromCurrentTab = function()
{
  this.downloadFromBrowser(gBrowser.selectedBrowser);
}
 
this.downloadFromCurrentTabAndClose = function()
{
  this.downloadFromCurrentTab();
  gBrowser.removeCurrentTab();
}
 
this.downloadFromAllTabs = function()
{
  this.downloadFromBrowsers(gBrowser.browsers);
}
 
 
this.downloadFromBrowser = function(browser)
{
  gThumbsDown.activate(browser);
  gThumbsDown.selectAll(browser);
  gThumbsDown.download(browser);
}
 
this.downloadFromBrowsers = function(browsers)
{
  if (browsers.length > 0)
  {
    this.downloadFromBrowser(browsers[0]);
    // non-zero delay so that dta window has time to start opening if it's not yet opened
    var self = this;
    setTimeout(function() { self.downloadFromBrowsers(browsers.slice(1)); }, 1);
  }
}

Help

Field Empty

Details

Button Categories: 
Depends on (and Compliments) Extension(s): 

Custom Buttons² was not found: find out why...

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042315 Firefox/3.0.10

Posted with the theme Pluralism

Top
Joined: 02/01/2010
Posts: 2
User offline. Last seen 2 weeks 1 day ago.

Nice job, bold text and images. I have seen people request or try to do multi-line tooltips before on here, but none have worked for me. I see your image is on a new line apparently... care to give an example of two sentences of text at the top (one below the other, and the image then below both). No rush... but it is a problem that's been around for a while.
350-018

350-029

640-460

Custom Buttons² was not found: find out why...

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6

Posted with the theme Pluralism

Top