downthemall / anticontainer

DownThemAll! AntiContainer (Extension to a Firefox, Seamonkey extension)
Mozilla Public License 2.0
93 stars 41 forks source link

Custom naming capability with access to original document for name components #76

Open MokoJumbie opened 11 years ago

MokoJumbie commented 11 years ago

I realize there is an as-yet-undocumented 'namer' property and there is no access to the file renaming mask for name components yet. As far as I can tell, the 'namer' has access to the match provided by the 'finder'. But could there be a way to obtain naming components from other sources, such as the original document?

nmaier commented 11 years ago

Well, the finder operates on the container document. If you want to use the referring document, you're out of luck, there is no way to get to that from AC, not even in a sandbox (as you wouldn't know the referrer).

There might be other work-arounds like using some userscript to set appropriate download= attributes on the links and using DTA 3.0 to download then. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#attr-download

Leaving this open as a RFE