init: mep
This commit is contained in:
16
yt-no-inline-ads.js
Normal file
16
yt-no-inline-ads.js
Normal file
@@ -0,0 +1,16 @@
|
||||
// ==UserScript==
|
||||
// @name Remove YT Inline Ads
|
||||
// @version 1.0.0
|
||||
// @description Removes YT Inline Ads
|
||||
// @author phga
|
||||
// @match *://*.youtube.com/*
|
||||
// @exclude *://*.youtube.com/subscribe_embed?*
|
||||
// ==/UserScript==
|
||||
const removeAds = () => {
|
||||
const ads = [...document.querySelectorAll('ytd-ad-slot-renderer')];
|
||||
if (ads.length > 0) {
|
||||
ads.forEach(e => e.remove());
|
||||
}
|
||||
}
|
||||
|
||||
setInterval(removeAds, 2000);
|
||||
Reference in New Issue
Block a user