0x48piraj / fadblock

Friendly Adblock for YouTube: A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome, Opera and Firefox.
2.4k stars 110 forks source link

Cannot skip the ads of youtube in google chrome #171

Closed Pacific-Feng closed 5 months ago

Pacific-Feng commented 7 months ago

Hi,

I recently installed the extension (https://chromewebstore.google.com/detail/fadblock-origin-friendly/lmnhcklabcehiohmmeihcheoegomkghm), however, it is not skipping the ads.

I am wondering that if there is anything that I have to do addtionally to make it work normally.

Best regards,

Frammer commented 7 months ago

Have you refreshed the tab YouTube is open in?

Pacific-Feng commented 7 months ago

Yes, I have closed the chrome several times, but it still not work. I also reinstall the extension, and also not working.

MaximusHoudini commented 7 months ago

I am having the same issue as well, ads are playing and not being skipped, the tab needs to be refreshed multiple times before it works. I've updated Chrome, the extension and still the same.

blurskye commented 7 months ago

you likely didnt disable your default adblock, you need to do that, fadblock cant help it if your default adblock gets detected

MaximusHoudini commented 7 months ago

Nope, I don't have any other adblocker installed.

sonertari commented 7 months ago

Can you make the following change in background.js and try again (this works for me):

//const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const skipLock = document.querySelector(".ytp-ad-preview-text-modern")?.innerText;

In other words, I think youtube has changed that class name. (This patch should be made generic, if it really works for you too).

boulwabd commented 6 months ago

Can you make the following change in background.js and try again (this works for me):

//const skipLock = document.querySelector(".ytp-ad-preview-text")?.innerText;
const skipLock = document.querySelector(".ytp-ad-preview-text-modern")?.innerText;

In other words, I think youtube has changed that class name. (This patch should be made generic, if it really works for you too).

This appears to have fixed mine after the recent chrome update

0x48piraj commented 6 months ago

It works for me as of now.

Seems like a geo-rollout. Let me know if that's still the case.

The classes are pushed on a server so it should be solved instantly without updating the extension.