Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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

  • 4 отговора
  • 1 има този проблем
  • 4 изгледи
  • Последен отговор от 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!

Избрано решение

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>
Прочетете този отговор в контекста 👍 2

Всички отговори (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>

Променено на от cor-el

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

Избрано решение

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>

Променено на от cor-el

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...