ThumbsDown - Download All Images
Buttons
Downloads all the images from tab(s) using ThumbsDown.
Behavior
| Action | Behavior |
|---|---|
| Download all images from the current tab. | |
| Download all images from all tabs. | |
| Download all images from the current tab and close the tab. |
Revisions
Code
// see initialization codeInit
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
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

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