Extension for automatically skipping video ads and closing banner ads on YouTube.
The main idea of this extension is taken from andykawabata's YouTube Ad Skipper. He discovered that you can skip a YouTube ad without waiting 5 seconds by using JavaScript .click()
.
So basically my script uses an observer to detect any change on the YouTube page (including that way both new ads and video changes) and try to click the skip or close button.
You can download this extension for Chrome, Firefox, Opera and Edge from their addon stores.