Auto Close YouTube Ads

Close and/or Mute YouTube ads automatically!

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

  • v1.4.7 20.04.2024 Imported from URL
  • v1.4.6 19.04.2024 Imported from URL
  • v1.4.5 14.11.2023 Imported from URL
  • v1.4.4 19.03.2022 Imported from URL
  • v1.4.3 19.03.2022 Imported from URL
  • v1.4.2 20.03.2021 Imported from URL
  • v1.4.1 08.06.2019 Imported from URL
  • v1.4.0 07.05.2019 Imported from URL
  • v1.3.1 01.01.2019 Imported from URL
  • v1.1.20 31.03.2018 Imported from URL
  • v1.1.19 19.02.2018
  • v1.1.18 29.01.2018 Imported from URL
  • v1.1.17 23.06.2017 Imported from URL
  • v1.1.16 07.01.2017 Imported from URL
  • v1.1.15 23.12.2016 Imported from URL
  • v1.1.15 23.12.2016 bump version
  • v1.1.14 23.12.2016 Imported from URL
  • v1.1.14 24.09.2016 Imported from URL
  • v1.1.14 13.08.2016 fix changing of MUTE setting
  • v1.1.13 01.05.2016 updated to handle newest change to waitForElems (.stop())
  • v1.1.12 01.05.2016 updated to use new MutationObserver based waitForElems
  • v1.1.11 11.02.2016 changed desc
  • v1.1.10 09.09.2015 fixed detection of mute state, was causing audio to not be unmuted
  • v1.1.9 09.09.2015 update mute button css selector to match new youtube layout
  • v1.1.8 13.08.2015 fix setting delay to 0
  • v1.1.7 01.07.2015 updated overlay ad close button css selector (youtube changed it)
  • v1.1.6 06.05.2015 mute video ads by default
  • v1.1.5 22.04.2015 adjusted video url regex to handle case where video parameter isn't the first one
  • v1.1.4 17.04.2015 changed script description
  • v1.1.3 17.04.2015 removed test log
  • v1.1.2 17.04.2015 simplified selector for detecting video ad
  • v1.1.1 17.04.2015 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 17.04.2015 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 14.04.2015 restructured code slightly and colored log
  • v1.0.3 14.04.2015 fixed issue where intervals were never being cleared
  • v1.0.2 14.04.2015 added log for leaving video; properly remove check for elements when on non-video page
  • v1.0.1 12.04.2015
  • v1.0.0 12.04.2015