I am wondering if there is any keyboard shortcut to close the ads (advertisement) on YouTube.

For example, as the one as in the picture below.

Enter image description here

  • 1
    It seems like by design there shouldn't be one. You're lucky they even have an [X] to close.
    – user20574
    Dec 4, 2016 at 22:05

6 Answers 6

  • The keyboard shortcut to skip the ad at the beginning of a video is Tab and then Enter.
  • There is no keyboard shortcut to skip ads in the middle of the video.

Other things to try

  • 5
    Also, if you're looking for a good adblocker I recommend uBlock Origin.
    – timotree
    Dec 4, 2016 at 14:20
  • Thank you. Which one is better Tampermonkey or uBlock Origin for Chrome?
    – anhnha
    Dec 4, 2016 at 14:25
  • 1
    @anhnha Tampermonkey is something which lets you install custom extensions into Chrome. uBlock Origin is an extension for chrome. Are you asking about a comparison between uBlock Origin and Auto Close YouTube Ads?
    – timotree
    Dec 4, 2016 at 14:28
  • Oh, yes uBlock Origin and Auto Close YouTube Ads.
    – anhnha
    Dec 4, 2016 at 14:29
  • 2
    @anhnha When you watch an ad on someone's video they make a little bit of money. The point of Auto Close YouTube Ads is to make the ads the least annoying as possible while still letting the YouTuber make money. uBlock Origin, on the other hand will not give the YouTuber any money, but you won't see any ads at all.
    – timotree
    Dec 4, 2016 at 14:32

Answering OP question about keyboard shortcut:

The location of close (x) icon (as of 2019 Oct) is one tab back from timeline. As I noted depending on some factors starting active control could be different, so in general solution is as suggested briefly by other answer, I add more details.

If you just skipped (e.g. forward) via timeline, it's active and then to close ad as on the picture of OP question:


If not, click TAB repeatedly and see how active control change (I noted it's usually 3 or 4 times to x control icon), if you can clearly see it's x icon, then click space, otherwise click until timeline is active, then one time shift-tab and then space.

Works on Firefox 67 on Linux on Thinkpad, please add comments those who try for other browsers/OS/devices.

P.S. learned to navigate yourtube via keyboard during that exercise, just one useful tip - pausing/resume via spacebar works when timeline is active.

  • Tried and it works in Chrome on MacBook exactly as written, I think success depends not on operating system, but on current state of youtube site layout. But in case of small changes the approach may remain valid with small variations. Oct 10, 2019 at 15:43

This answer doesn't directly relate to your specific keyboard shortcut, but I thought I'd mention it anyways since alternatives are being mentioned.

Ironically, given the ad is for Raspberry Pi beta testers, another option for hiding/blocking the ads is to purchase a Raspberry Pi and set up Pi-Hole which can be used to block ads network wide.

The Pi-hole can block ads for all devices on your network. All you need is a Raspberry Pi connected to your router. It was inspired as a low-cost, open source alternative to the AdTrap.

Currently, over...1.6 million (if you decide to use the mahakala source list) domains known to serve advertisements can be blocked before they even reach your computer. The list of these domains are maintained by different sites across the Internet. The Pi-hole queries these sites and compiles them into an aggregated list, which is then stored on the Raspberry Pi to block advertisements.

From here.


Just hit TAB the necessary number of times and hit SPACEBAR when the X is highlighted.


The shortcut to skip ads in mid video is Tab + Shift + Enter.


Add this Chrome extension to get rid of YouTube ads.

Link: https://chrome.google.com/webstore/detail/ad-free-youtube/loaocbojmkjpcjabkcghbcdggjemhkpe

You won't need to wait 5 seconds anymore to watch the next video and this extension removes the bottom popovers as well.

Below are the steps to install this extension to your Chrome browser (for newbies). Link: https://medium.com/@rushicbharad/get-rid-of-youtube-ads-bd3a2ed9898a

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.