Auto Close YouTube Ads

Close and/or Mute YouTube ads automatically!

As of 2018-02-19. See the latest version.

These are versions of this script where the code was updated. Show all versions.

  • v1.4.5 2023-11-14 Imported from URL
  • v1.4.4 2022-03-19 Imported from URL
  • v1.4.3 2022-03-19 Imported from URL
  • v1.4.2 2021-03-20 Imported from URL
  • v1.4.1 2019-06-08 Imported from URL
  • v1.4.0 2019-05-07 Imported from URL
  • v1.3.1 2019-01-01 Imported from URL
  • v1.1.20 2018-03-31 Imported from URL
  • v1.1.19 2018-02-19
  • v1.1.18 2018-01-29 Imported from URL
  • v1.1.17 2017-06-23 Imported from URL
  • v1.1.16 2017-01-07 Imported from URL
  • v1.1.15 2016-12-23 Imported from URL
  • v1.1.15 2016-12-23 bump version
  • v1.1.14 2016-12-23 Imported from URL
  • v1.1.14 2016-09-24 Imported from URL
  • v1.1.14 2016-08-13 fix changing of MUTE setting
  • v1.1.13 2016-05-01 updated to handle newest change to waitForElems (.stop())
  • v1.1.12 2016-05-01 updated to use new MutationObserver based waitForElems
  • v1.1.11 2016-02-11 changed desc
  • v1.1.10 2015-09-09 fixed detection of mute state, was causing audio to not be unmuted
  • v1.1.9 2015-09-09 update mute button css selector to match new youtube layout
  • v1.1.8 2015-08-13 fix setting delay to 0
  • v1.1.7 2015-07-01 updated overlay ad close button css selector (youtube changed it)
  • v1.1.6 2015-05-06 mute video ads by default
  • v1.1.5 2015-04-22 adjusted video url regex to handle case where video parameter isn't the first one
  • v1.1.4 2015-04-17 changed script description
  • v1.1.3 2015-04-17 removed test log
  • v1.1.2 2015-04-17 simplified selector for detecting video ad
  • v1.1.1 2015-04-17 If audio was already muted when the ad started, make sure to keep it that way; if audio is unmuted partway through the ad don't bother clicking the mute button again when it ends
  • v1.1.0 2015-04-17 script now works on videos embedded on other sites; 2 new menu options; 1st allows you set the exact delay you want before closing an ad; 2nd allows to enable/disable whether you want video ads to be muted while they play
  • v1.0.4 2015-04-14 restructured code slightly and colored log
  • v1.0.3 2015-04-14 fixed issue where intervals were never being cleared
  • v1.0.2 2015-04-14 added log for leaving video; properly remove check for elements when on non-video page
  • v1.0.1 2015-04-12
  • v1.0.0 2015-04-12