@fanboyz i appreciate the hard work and i hope you guys find a solution to the server side ad injection but why not temporarily implement a simple ad skipping script while you guys figure out how to block them ?
this works well for insta-skipping all video ads :
let ii=false;
const observer = new MutationObserver((mutations) => {
var btn = document.querySelector('.ytp-skip-ad-button');
if(btn) btn.click();
var btn2 = document.querySelector('.ytp-preview-ad__text');
var btn3 = document.querySelector('.ytp-ad-textt');
if((btn2 || btn3) && !ii){
let video=document.querySelector('video');
if(video) video.currentTime = 50;
ii=true;
setTimeout(function() {
ii=false;
}, 100);
}
});
observer.observe(document.body, { childList: true, subtree: true });```
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.