Google Chrome Auto-Close Download Bar

88

26

Having to hit the X to close out that bar over and over is such a pain. When a download completes, I want to have the bar clear itself and leave the bottom of the screen, similar to the way Download Statusbar for Firefox does. How do I do this?

finiteloop

Posted 2010-02-21T18:25:19.530

Reputation: 1 743

1Ctrl-J Ctrl-W does exactly what you are asking. – xdavidliu – 2019-09-24T02:46:41.547

Answers

26

2019 Edit: Since it seems the extension below is no longer available, someone has mentioned this extension could work: Always Clear Downloads 2


Original 2012 Information: Found this Chrome extension today. It's relatively new, available since May 22, 2012:

Always Clear Downloads

A Google Chrome Extension to always clear the downloads list of all completed downloads.

User Reviews:

  • First extension that clears the download bar and hides it afterwards.

  • I have been looking for an extension that does this! Thank you. Works very well hiding the download bar after the download has completed. Saves a click.

Pat

Posted 2010-02-21T18:25:19.530

Reputation: 769

this answer is not the best. Ctrl-J Ctrl-W does exactly what the question asks. – xdavidliu – 2019-09-24T02:46:20.970

@xdavidliu this comment is not the best. The question is to auto-close. Manual keypressing is not automatic. – Pat – 2019-09-25T12:19:04.983

8Unfortunately, that extension clears out failed downloads and the entire download list after 5 seconds, with no customization for those options. I (and I think many others here) just want the downloads bar at the bottom to go away, since it takes up screen real-estate. That being said, it's a step in the right direction. – ezrock – 2012-12-05T23:13:21.660

49

Easier keyboard shortcuts (Windows): Ctrl+J, Ctrl+W (open "Downloads" tab and close it, which happens to also close the download bar in the original tab).

For Mac, use ⌘ (Cmd)+Shift+J.

Diego

Posted 2010-02-21T18:25:19.530

Reputation: 2 223

this answer still works as of Sept 2019, and doesn't require any extensions. It should be the accepted answer. – xdavidliu – 2019-09-24T02:45:34.373

Although this doesn't help the OP's query about the downloads bar. – MrWhite – 2013-03-18T18:06:20.460

@w3d, I believe you did not understand my answer. Also, this was two years ago... – Diego – 2013-03-19T00:21:06.100

3

@Diego: Ooops, yes - as a side effect it removes the downloads bar! Sorry! :) (Yep, it's an old thread, although this "problem" is still current and this thread is cited as the authoritative question on the subject.)

– MrWhite – 2013-03-19T08:19:08.870

11

Keyboard shortcut solution for Mac users

The Download Bar has been my #1 complaint about Google Chrome ever since I started using it, and was often a reason to switch back to Safari as my main browser. Every now and then I go through all the Google Groups topics about this, but even though there've been bug reports and feature requests about this for years, nobody at Google can be bothered to add a simple "Close Download Bar" keyboard shortcut or a "Don't show the Download Bar" checkbox in the settings.

Furthermore, the Download Bar isn't added within the window, the window is resized and then the Download Bar gets added. Hello Google, this isn't 1995 where JavaScripts are constantly resizing your application windows. I am the user, and I decide how large my windows should be.

When you close the Downloar Bar right away, the window size is restored though. However, when you interact with other applications for a while and then return to Google Chrome to close the Download Bar, it forgot the original window size for some reason, and you're stuck with the resized window. This probably isn't a problem on a screen with a high resolution, but on laptops where you have less screen real estate, it can be really annoying.

Because of the resizing, I started looking into finding a solution using AppleScript. And while I was working on that, I found a way to automate the closing of the Download Bar as well.

AppleScript that closes the Download Bar

Here's what it does:

  1. Opens the Downloads window (which automatically removes the Download Bar)
  2. Closes the Downloads window
  3. Returns to the previously active tab
  4. Optional: resizes the window to your preferred dimensions
on run
    tell application "Google Chrome"
        activate

        -- know which tab to return to
        set active_tab to active tab index of front window

        tell application "System Events"
            tell application process "Google Chrome"
                -- opens download window and removes the download bar
                keystroke "j" using {command down, shift down}
                -- make sure the keystroke works
                delay 0.2
                -- closes the download window
                keystroke "w" using command down
            end tell
        end tell

        -- return to the tab
        set active tab index of front window to active_tab

        -- optional: resize to your preferred dimensions
        set bounds of front window to {50, 40, 1400, 810}
    end tell
end run

Like I said, after a while Google Chrome forgets the original window size. The bounds in the script are how I prefer my browser window on my MacBook Air resolution. You can remove this, or set it to whatever you want. I guess it's also possible to determine what the bounds are after the window has been resized, and then calculate what they were if you subtract the height of the Download Bar.

Install AppleScript as Service with keyboard shortcut

The easiest way to run this script is to install it as a system wide Service that you can then activate using a keyboard shortcut. To do this, follow these steps:

  1. Start the Automator application
  2. Create a "Service"
  3. Set the "Service receives" to "no input" (drop down) at the top
  4. Search for "AppleScript" on the left
  5. Drag the "Run AppleScript" action to the Workflow pane on the right
  6. Paste in the above code (and test it if you like)
  7. Save the Service as something like "Google Chrome: Close Download Bar"

Next:

  1. Go to System Preferences > Keyboard
  2. Select "Services" on the left
  3. Find your newly created Service on the right under the heading "General"
  4. Double click on the right side of that line to activate the shortcut input box
  5. Press your preferred key combo (I used Control–Option–Command–J)

And that's it. Now, whenever you press your key combo, Google Chrome will be activated (if it wasn't already), and the AppleScript is loaded removing the Download Bar. So it's also an easy way to quickly return to Chrome, e.g. when you did something with the file you downloaded.


Note 1: This also works in Google Chrome Canary; simply refer to "Google Chrome Canary" in the AppleScript.
Note 2: A similar approach should work in Windows using AutoHotKey.

Alec

Posted 2010-02-21T18:25:19.530

Reputation: 219

Fyi, I think the resizing thing isn't Google's fault. Look at other os x apps, Safari for instance resizes when the tab bar appears (like when you open a second tab using default settings), etc, etc. This is one of thing about os x that is absolutely annoying. – Joseph Hansen – 2015-01-21T06:00:04.830

Anything for the Win users? – Shimmy – 2012-11-27T00:02:17.383

11

Auto-closing the download shelf? Ha! Good luck with that; the devs are resolute to not implement that for some reason. However, they have made it so that opening a file (ie, by clicking on its download-bar entry) will remove it, and if the bar is empty, then it will hide.

They also refuse to make an option to not show the shelf at all.

Synetech

Posted 2010-02-21T18:25:19.530

Reputation: 63 242

2This is quite sad and annoying! This should get upvotes so that people are aware of the dev's stance on this issue! Else we'll end up lobbying in the wrong place probably... – grunwald2.0 – 2012-08-10T08:53:51.453

1Poor decisions... Would be nice to see if Chrome developers can back this up by real measures: if they did a proper efficiency test to see which users handle downloads quicker – Safari's or Chrome's – the former group would prove winners. It's a pity. Just as much as it is, seeing that Apple don't get that they need to create something worthy of comparison to Chrome's Web Store, for Safari's extensions. Why these guys won't follow each others' good examples fables me.) – Henrik – 2012-11-23T21:21:30.733

1Sadly the Chromium devs seem to ignore user feedback about as much as Microsoft does. ☹ – Synetech – 2012-11-23T23:58:36.680

10

For what it's worth, you can close it with the keyboard by doing:

  • Windows: CTRL-J, CTRL-W

  • Mac: CMD-SHIFT-J, CMD-W

The first command pops your downloads in a new tab, the second quickly closes the downloads, sending you back to your previous tab. Doing so closes the 'Downloads' bar.

dep

Posted 2010-02-21T18:25:19.530

Reputation: 111

1When did they add these? – Ivo Flipse – 2011-03-22T13:42:51.253

5@Ivo, these are standard OS GUI navigation shortcuts, they're not Chrome-specific – Pavel – 2011-07-20T10:09:37.087

4

How about using this extension
https://chrome.google.com/webstore/detail/downloadr-download-manage/gjihnjejboipjmadkpmknccijhibnpfe

enter image description here

No place hogging download bar will show up any more.

Meow

Posted 2010-02-21T18:25:19.530

Reputation: 245

3

I did something close to Alec here, but my code is a little more efficient and resilient - mostly because it doesn't rely on keyboard shortcuts (much) and dynamically checks whether the shortcuts has registered before it goes on. Enjoy!

tell application "Google Chrome" to set i to active tab index of first window
tell application "System Events" to keystroke "j" using {command down, shift down}
tell application "Google Chrome"
    repeat
        if URL of active tab of first window = "chrome://downloads/" then
            exit repeat
        else
            delay 0.1
        end if
    end repeat
    set j to active tab index of first window
    delete tab j of first window
    set active tab index of first window to i
end tell

user179947

Posted 2010-02-21T18:25:19.530

Reputation:

1

You can get rid of the download bar in Chromium with a keyboard shortcut. An extension for this purpose can be downloaded here:

http://metalab.at/wiki/Benutzer:Tessellated/Chromium_Clicky

Note that this project has been abandoned.

Michael Hauser

Posted 2010-02-21T18:25:19.530

Reputation: 11

0

There is chrome extension "Close download bar" for closing download bar with hotkey.

d9k

Posted 2010-02-21T18:25:19.530

Reputation: 401

0

Here’s a script I came up with to close the downloads bar. Instead of opening and closing the downloads window, it just clicks the button to close the downloads bar.

tell application "System Events"
    tell application process "Google Chrome"
        tell window 1
            click button "Close"
        end tell
    end tell
end tell

I invoke it via FastScripts, although the method that @Alec describes should also work.

Michael Tsai

Posted 2010-02-21T18:25:19.530

Reputation: 245