RemoveAdblockThing: I soved the ad centre problem ( and mix skipping problem potentially):

I figured out how the code works and I modified it so the ad centre thing does not show up anymore… this solution seems to solve the mix skipping problem…

here is the code:

you need to open the .js file in a text editor ( NOTEPAD WORKS TOO BUT YOU WILL NOT SEE THE NUMBERED CODE LINES)

replace this code:

if (ad)
            {
                if (debugMessages) console.log("Remove Adblock Thing: Found Ad");

                const video = document.querySelector('video');
                const openAdCenterButton = document.querySelector('.ytp-ad-button-icon');
                const blockAdButton = document.querySelector('[label="Block ad"]');
                const blockAdButtonConfirm = document.querySelector('.Eddif [label="CONTINUE"] button');

                if (video) video.playbackRate = 10;
                if (video) video.volume = 0;
                if (video) video.currentTime = video.duration || 0;

                if (video) skipBtn?.click();

                openAdCenterButton?.click();
                blockAdButton?.click();
                blockAdButtonConfirm?.click();

                if (debugMessages) console.log("Remove Adblock Thing: skipped Ad (✔️)");
            }

(LINES 132 - 152)

WITH THIS CODE :

if (ad)
            {
                if (debugMessages) console.log("Remove Adblock Thing: Found Ad");

                const video = document.querySelector('video');
                const openAdCenterButton = document.querySelector('.ytp-ad-button-icon');
                const blockAdButton = document.querySelector('[label="Block ad"]');
                const blockAdButtonConfirm = document.querySelector('.Eddif [label="CONTINUE"] button');
                const closeAdCenterButton = document.querrySelector('zBmRhe-Bz112c');

                if (video) video.playbackRate = 10;
                if (video) video.volume = 0;
                if (video) video.currentTime = video.duration || 0;

                if (video) skipBtn?.click();

                openAdCenterButton?.click();
                blockAdButton?.click();
                blockAdButtonConfirm?.click();
                closeAdCenterButton?.click();
                

                if (debugMessages) console.log("Remove Adblock Thing: skipped Ad (✔️)");
            }
            

BE AWARE OF THE INDENTATION OF THE CODE IS IMPORTANT … IF THE CODE IS NOT THE SAME INDENTATION AS BEFORE IT WILL NOT WORK!!

IT SHOULD LOOK LIKE THE SCREENSHOOT THAT I PROVIDED: Screenshot 2023-12-10 at 12 36 32

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Reactions: 7
  • Comments: 16 (7 by maintainers)

Most upvoted comments

Check out the latest version (2.6) it should be fixed now

First of all, we are delivering the contents to you using a translator, so please understand.

After the update, the advertising center popped up, so I was angry and looked for the code. In order for the advertising center window to appear, it must be clicked on that button in the advertisement.

image

If you find the corresponding button in the RemoveAdblockThing code, you can find const openAdCenterButton in lines 132-152 the same as Altex2 wrote.

image

But I don’t know why I need that button. Looking at the past history of the code, I found that the item was added to the “New Skipping method and Cleaned up code”.

image

But as everyone knows, even without that button code, the previous version of the ad skip worked. I thought it was hard to find a reason to click on that ad center button in the current version even if I peeped through the code. So I just annotated it and used it, but so far it’s working fine.

image

Maybe our developer friend forgot to handle that button after the test. And, I would like to thank Altex2, who posted the information needed to resolve it quickly.

Hey! That works now! Commercials are now shown bit longer in time, but no ads center so far! Thank you! (using TFYT)

Glad I could help ❤️❤️