Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Learn More

auto close tabs that open when clicking download links

  • 8 Antworten
  • 1 hat dieses Problem
  • 3 Aufrufe
  • Letzte Antwort von cor-el

more options

When clicking on a download link, Firefox sometimes opens a new tab to download the file and never closes it. I had found an add-on that closed that tab soon after opening it in the Add-on section. Last night I had a HD crash and had to do a reformat and re-installation of Windows and all my software. I had not made a backup of Firefox with the installed add-ons recently, so when I restored from the backup that add-on wasn't there.

Does anyone know the name of the add-on that I'm referring to so I can reinstall it and not have to close the tabs manually?

When clicking on a download link, Firefox sometimes opens a new tab to download the file and never closes it. I had found an add-on that closed that tab soon after opening it in the Add-on section. Last night I had a HD crash and had to do a reformat and re-installation of Windows and all my software. I had not made a backup of Firefox with the installed add-ons recently, so when I restored from the backup that add-on wasn't there. Does anyone know the name of the add-on that I'm referring to so I can reinstall it and not have to close the tabs manually?

Alle Antworten (8)

more options

A possible workaround to prevent opening a new tab is to use "Save Link As" in the right-click context menu instead of left-clicking the link.

more options

Click Start, select “Control panel” option

   Open “Uninstall a program”
   Uninstall all suspicious and unknown applications
   Reset Firefox settings
   Download AdwCleaner and scan your computer
   and remove any malware found
more options

You must Intercept the download links.

   You must send the link to a new tab when 

it is clicked, and not just modify it with target="_blank". The tab must be opened with javascript, so that javascript will be allowed to close it when the time comes.

   Your script must also run-on / handle the 

"popup" tab, so that it can detect when to close the popup.

For this discussion, refer to

this test page at jsFiddle. 

It is structured like this:

where the a.dwnPageLink

links each open a "Download page"
-- which automatically starts a 

file download after a short delay.

more options

Dinushi Dhananjani said

You must Intercept the download links. You must send the link to a new tab when it is clicked, and not just modify it with target="_blank". The tab must be opened with javascript, so that javascript will be allowed to close it when the time comes. Your script must also run-on / handle the "popup" tab, so that it can detect when to close the popup. For this discussion, refer to this test page at jsFiddle. It is structured like this:

where the a.dwnPageLink

links each open a "Download page"
-- which automatically starts a 

file download after a short delay.

more options

cor-el said

A possible workaround to prevent opening a new tab is to use "Save Link As" in the right-click context menu instead of left-clicking the link.

Dosn't seem to work when trying to download video files.

more options

Reset the browser.

   1.Go to about:config via your Address Bar.
   2.Press the button saying you'll be careful.
   3.Search for browser.newtab.url.
   4.Right click -> Reset.
   5.You might also want to check for any prefs Trovi has set. ...
   6.You might have to restart Firefox for this to work.
more options

browser.newtab.url was not found in search

more options

If you left-click a link then Firefox will first try to open the link in a new file. If Firefox notices that it can't display the file then you get a download dialog, but Firefox may not close the tab. If you can't right-click and use "Save Link As" as a workaround then you will have to close the tab manually yourself.

I don't know if there are extensions that will close the tab automatically in this case.