Close Downloads Bar

Summary: Hides the Downloads bar at the bottom of the browser window.
Requires: Google Chrome
Suggested Key Binding: Command-Control-W
Install Location: ~/Library/Scripts/Applications/Google Chrome/
Last Modified: 2019-10-02

Description

Chrome automatically shows the Downloads bar at the bottom of the window when you download a file, and it does not hide the bar after the download is complete. This script lets you use a keyboard shortcut to close the Downloads bar, so that you don’t have to click the close button.

Installation Instructions · Download in Compiled Format · Download in Text Format

Script

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