Este site está com funcionalidades limitadas enquanto realizamos manutenção para melhorar sua experiência de uso. Se nenhum artigo resolver seu problema e você quiser fazer uma pergunta, nossa comunidade de suporte pode te ajudar em @FirefoxSupport no Twitter e /r/firefox no Reddit.

Pesquisar no site de suporte

Evite golpes de suporte. Nunca pedimos que você ligue ou envie uma mensagem de texto para um número de telefone, ou compartilhe informações pessoais. Denuncie atividades suspeitas usando a opção “Denunciar abuso”.

Saiba mais

Esta discussão foi arquivada. Faça uma nova pergunta se precisa de ajuda.

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

  • 4 respostas
  • 1 tem este problema
  • 4 visualizações
  • Última resposta de edvardgrieg11

more options

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!

Solução escolhida

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>
Ler esta resposta 👍 2

Todas as respostas (4)

more options

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

data:text/html,<a href="%s" >%S%</a>

Alterado por cor-el em

more options

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?

more options

Solução escolhida

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>

Alterado por cor-el em

more options

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