squgeim / yt-ad-autoskipper

A browser extension that automates skipping ad on Youtube. This is not an ad blocker, it just automates the process of clicking on the "Skip Ad" button on Youtube.
https://chrome.google.com/webstore/detail/youtube-ad-auto-skipper/lokpenepehfdekijkebhpnpcjjpngpnd
GNU General Public License v3.0
275 stars 55 forks source link

Doesn't work #63

Closed simonik closed 6 months ago

simonik commented 9 months ago

It doesn't work now.

cuwittrock commented 8 months ago

Doesn't work for me either. Installed it today but it never skips any ads

rheimus commented 8 months ago

Class name issues most likely:

YT has changed class names around, I believe the skip add button is now called ytp-skip-ad-button.

Heres a dump of the ad section html.

```
Red Hot Deals
newworld.co.nz
Sponsored 1 of 2 ·
0:05
My Ad Centre
```
rheimus commented 8 months ago

You could write a very basic skipper in your dev console as a workaround.

⚠ Warning: It is very unsafe to execute random code found on the internet, be sure you know what it is doing.

var sai = setInterval(() => {
    const skip = document.querySelector(".ytp-skip-ad-button");
    if (skip) {
        console.log("found skip, attempting click");
        skip.click();
    }
}, 10000)