Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Learn More

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

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!

Vald lösning

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>
Läs svaret i sitt sammanhang 👍 2

Alla svar (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>

Ändrad av 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

Vald lösning

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>

Ändrad av 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...