Infocatcher / Download_Panel_Tweaker

Some tweaks for built-in download panel, restartless extension for Firefox
https://addons.mozilla.org/addon/download-panel-tweaker/
Other
9 stars 2 forks source link

Show full patch to file in tooltip for file name #22

Closed Infocatcher closed 10 years ago

Infocatcher commented 10 years ago

Requested here: https://forum.mozilla-russia.org/viewtopic.php?pid=647112#p647112

We have chrome://browser/content/downloads/downloads.js and view-source:chrome://browser/content/downloads/download.xml#download

        <xul:description class="downloadTarget"
                         crop="center"
                         style="min-width: &downloadsSummary.minWidth2;"
                         xbl:inherits="value=target,tooltiptext=target"/>

for panel (so used the same value for tooltip and label from target attribute). Also we have something different for Library and about:downloads, see chrome://browser/content/downloads/allDownloadsViewOverlay.js:

    // Copied from updateProgress in downloads.js.

(two times)

      // See comment in DVI_onStateChange in downloads.js (the panel-view)

(yay! enjoy that great programming pattern!)

So, looks like we don't have some global code, that can be tweaked from our side to apply changes to all download items.

Anyway, it's easy to handle only panel: we can update tooltip after mouseover.

Infocatcher commented 10 years ago

Test version: download_panel_tweaker-0.2.1pre6-fx.xpi (source).