X
Tap here to go to the mobile version of the site.

Support Forum

How can I download a file inside a link without right-clicking it ("save target as")?

Posted

Hi there! Does anyone know if there's any way I can download a file hosted on a link (e.g., www.ff.org/test.pdf ) without going to config and changing my preferences? I want FF to keep opening media (like pdf and mp3) on the tab when I clik on it, as a general rule. But sometimes I want to be able to download a file, and I can't right click it because all I have is the adress someone gave me. If I type that adress and hit enter, FF will open the file in a tab.

Is there any command I can pass, say, on the adress bar that will make me download the file instead of opening it in a FF tab (like download:www.ff.org/test.pdf)? Will I always have to change my preferences to be able to download a file instead of opening it when I type the link on the adress bar?

Thanks!

Hi there! Does anyone know if there's any way I can download a file hosted on a link (e.g., www.ff.org/test.pdf ) without going to config and changing my preferences? I want FF to keep opening media (like pdf and mp3) on the tab when I clik on it, as a general rule. But sometimes I want to be able to download a file, and I can't right click it because all I have is the adress someone gave me. If I type that adress and hit enter, FF will open the file in a tab. Is there any command I can pass, say, on the adress bar that will make me download the file instead of opening it in a FF tab (like download:www.ff.org/test.pdf)? Will I always have to change my preferences to be able to download a file instead of opening it when I type the link on the adress bar? Thanks!

Chosen solution

That is supposed to be a keyword bookmark so you need to add a keyword and invoke the bookmark by typing the keyword and a space and paste the link after it. Make sure that the link includes the protocol (http://) That creates a browser page where you can right-click the link to save the file.

data:text/html,<a href="http://www.education.gov.yk.ca/pdf/pdf-test.pdf">http://www.education.gov.yk.ca/pdf/pdf-test.pdf</a>
Read this answer in context 2

Additional System Details

Installed Plug-ins

  • Shockwave Flash 13.0 r0
  • NVIDIA 3D Vision plugin for Mozilla browsers
  • NVIDIA 3D Vision Streaming plugin for Mozilla browsers
  • 5.1.30514.0
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • The plugin allows you to have a better experience with Microsoft SharePoint
  • The plugin allows you to have a better experience with Microsoft Lync
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.7
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • VLC media player Web Plugin 2.0.2
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.0
  • Windows Activation Technologies Plugin for Mozilla
  • RealJukebox Netscape Plugin
  • RealNetworks(tm) RealPlayer Chrome Background Extension Plug-In
  • RealPlayer(tm) HTML5VideoShim Plug-In
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealPlayer Download Plugin
  • iTunes Detector Plug-in
  • Windows Presentation Foundation (WPF) plug-in for Mozilla browsers

Application

  • Firefox 32.0.2
  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
  • Support URL: https://support.mozilla.org/1/firefox/32.0.2/WINNT/pt-BR/

Extensions

  • Adblock Plus 2.6.4 ({d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d})
  • Advertising Cookie Opt-out 1.5 (optout@google.com)
  • DoNotTrackMe: Online Privacy Protection 3.2.1127 (donottrackplus@abine.com)
  • EPUBReader 1.4.2.5 ({5384767E-00D9-40E9-B72F-9CC39D655D6F})
  • Google search link fix 1.4.9 (jid0-XWJxt5VvCXkKzQK99PhZqAn7Xbg@jetpack)
  • Lightbeam 1.0.10.2 (jid1-F9UJ2thwoAm5gQ@jetpack)
  • Microsoft .NET Framework Assistant 0.0.0 ({20a82645-c095-46ed-80e3-08825760534b})
  • Quick Translator 1.0 ({5C655500-E712-41e7-9349-CE462F844B19})
  • Tab Counter 1.9.9 (tabcounter@morac)
  • Troubleshooter 1.1a (troubleshooter@mozilla.org)
  • Adobe Acrobat - Create PDF 1.2 (web2pdfextension@web2pdf.adobedotcom) (Inactive)
  • avast! Online Security 9.0.2021.112 (wrc@avast.com) (Inactive)
  • Foobar 2.0.1 (foobar@unnecessarilylongurl.com) (Inactive)
  • YouTube Center 2.1.0 (jid1-cwbvBTE216jjpg@jetpack) (Inactive)

Javascript

  • incrementalGCEnabled: True

Graphics

  • adapterDescription: NVIDIA GeForce GTX 260
  • adapterDescription2:
  • adapterDeviceID: 0x05e2
  • adapterDeviceID2:
  • adapterDrivers: nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
  • adapterDrivers2:
  • adapterRAM: 896
  • adapterRAM2:
  • adapterVendorID: 0x10de
  • adapterVendorID2:
  • direct2DEnabled: True
  • directWriteEnabled: True
  • directWriteVersion: 6.2.9200.16571
  • driverDate: 5-19-2014
  • driverDate2:
  • driverVersion: 9.18.13.3788
  • driverVersion2:
  • info: {u'AzureCanvasBackend': u'direct2d', u'AzureFallbackCanvasBackend': u'cairo', u'AzureContentBackend': u'direct2d', u'AzureSkiaAccelerated': 0}
  • isGPU2Active: False
  • numAcceleratedWindows: 1
  • numTotalWindows: 1
  • webglRenderer: Google Inc. -- ANGLE (NVIDIA GeForce GTX 260 Direct3D9Ex vs_3_0 ps_3_0)
  • windowLayerManagerRemote: False
  • windowLayerManagerType: Direct3D 10

Modified Preferences

  • accessibility.blockautorefresh: True
  • accessibility.typeaheadfind: True
  • accessibility.typeaheadfind.flashBar: 0
  • browser.cache.disk.capacity: 358400
  • browser.cache.disk.smart_size.first_run: False
  • browser.cache.disk.smart_size.use_old_max: False
  • browser.cache.disk.smart_size_cached_value: 358400
  • browser.cache.frecency_experiment: 4
  • browser.cache.memory.capacity: 65536
  • browser.fixup.alternate.enabled: False
  • browser.history_expire_days.mirror: 180
  • browser.places.importBookmarksHTML: False
  • browser.places.smartBookmarksVersion: 7
  • browser.privatebrowsing.dont_prompt_on_enter: True
  • browser.search.param.yahoo-fr: chr-greentree_ff&ilc=12&type=198484
  • browser.sessionstore.upgradeBackup.latestBuildID: 20140917194002
  • browser.startup.homepage: http://www.google.com
  • browser.startup.homepage_override.buildID: 20140917194002
  • browser.startup.homepage_override.mstone: 32.0.2
  • browser.tabs.warnOnOpen: False
  • dom.mozApps.used: True
  • dom.w3c_touch_events.expose: False
  • extensions.lastAppVersion: 32.0.2
  • gfx.direct3d.checkDX10: False
  • gfx.direct3d.last_used_feature_level_idx: 1
  • javascript.options.baselinejit: False
  • keyword.URL: https://www.google.com/#q=
  • network.cookie.prefsMigrated: True
  • network.http.max-connections: 48
  • network.http.max-connections-per-server: 16
  • network.http.max-persistent-connections-per-proxy: 16
  • network.http.max-persistent-connections-per-server: 8
  • network.http.pipelining.maxrequests: 8
  • network.http.request.max-start-delay: 0
  • places.database.lastMaintenance: 1411246199
  • places.history.expiration.transient_current_max_pages: 104858
  • places.history.expiration.transient_optimal_database_size: 167772160
  • places.last_vacuum: 1300560814
  • plugin.disable_full_page_plugin_for_types: application/pdf
  • plugin.expose_full_path: True
  • plugin.importedState: True
  • plugin.state.flash: 1
  • plugin.state.java: 0
  • plugin.state.npctrl: 1
  • plugin.state.npgeplugin: 0
  • plugin.state.npgoogleupdate: 0
  • plugin.state.npitunes: 1
  • plugin.state.npmeetingjoinpluginoc: 1
  • plugin.state.nppdf: 1
  • plugin.state.nppl: 1
  • plugin.state.npqtplugin: 1
  • plugin.state.nprjplug: 1
  • plugin.state.nprpchromebrowserrecordext: 1
  • plugin.state.nprphtml5videoshim: 1
  • plugin.state.nprpplugin: 1
  • plugin.state.npspwrap: 1
  • plugin.state.npwatweb: 1
  • plugin.state.npwpf: 1
  • privacy.cpd.offlineApps: True
  • privacy.cpd.siteSettings: True
  • privacy.donottrackheader.enabled: True
  • privacy.sanitize.migrateFx3Prefs: True
  • privacy.sanitize.timeSpan: 2
  • security.warn_viewing_mixed: False
  • storage.vacuum.last.index: 1
  • storage.vacuum.last.places.sqlite: 1408909336

Misc

  • User JS: No
  • Accessibility: No
cor-el
  • Top 10 Contributor
  • Moderator
17771 solutions 160723 answers

Helpful Reply

You can use a bookmarklet like this to get a link that you can right-click

data:text/html,<a href="%s" >%S%</a>
You can use a bookmarklet like this to get a link that you can right-click <pre><nowiki>data:text/html,<a href="%s" >%S%</a></nowiki></pre>

Modified by cor-el

Question owner

Thanks cor-el!! But I fear I'm doing something wrong here, I supposed I should substitute %S% for the string adress (e.g., www.education.gov.yk.ca/pdf/pdf-test.pdf , would make it data:text/html,<a href="%s" >www.education.gov.yk.ca/pdf/pdf-test.pdf</a> ) this does indeed generate a link. But, when I right-click this link the option to "save link as" doesn't show (I don't know why). What am I missing?

Thanks cor-el!! But I fear I'm doing something wrong here, I supposed I should substitute %S% for the string adress (e.g., www.education.gov.yk.ca/pdf/pdf-test.pdf , would make it data:text/html,<a href="%s" >www.education.gov.yk.ca/pdf/pdf-test.pdf</a> ) this does indeed generate a link. But, when I right-click this link the option to "save link as" doesn't show (I don't know why). What am I missing?
cor-el
  • Top 10 Contributor
  • Moderator
17771 solutions 160723 answers

Chosen Solution

That is supposed to be a keyword bookmark so you need to add a keyword and invoke the bookmark by typing the keyword and a space and paste the link after it. Make sure that the link includes the protocol (http://) That creates a browser page where you can right-click the link to save the file.

data:text/html,<a href="http://www.education.gov.yk.ca/pdf/pdf-test.pdf">http://www.education.gov.yk.ca/pdf/pdf-test.pdf</a>
That is supposed to be a keyword bookmark so you need to add a keyword and invoke the bookmark by typing the keyword and a space and paste the link after it. Make sure that the link includes the protocol (http://) That creates a browser page where you can right-click the link to save the file. <pre><nowiki>data:text/html,<a href="http://www.education.gov.yk.ca/pdf/pdf-test.pdf">http://www.education.gov.yk.ca/pdf/pdf-test.pdf</a></nowiki></pre>

Modified by cor-el

Question owner

Brilliant!! Thanks a lot for the walkthrough, I'm trying to learn code but still a far way from actually doing any learning...

Brilliant!! Thanks a lot for the walkthrough, I'm trying to learn code but still a far way from actually doing any learning...