Sleazy Fork is available in English.
Removes all adverts on MurrTube.
// ==UserScript==
// @name Remove All Ads
// @description Removes all adverts on MurrTube.
// @namespace Violentmonkey Scripts
// @version 1.0.0
// @match *://murrtube.net/*
// @grant none
// @run-at document-start
// @license MIT
// ==/UserScript==
(function () {
'use strict';
const removeAds = (root = document) => {
const links = root.querySelectorAll?.('a[href^="/ads/"]') || [];
links.forEach(link => link.remove());
};
removeAds();
const observer = new MutationObserver(mutations => {
for (const mutation of mutations) {
for (const node of mutation.addedNodes) {
if (node.nodeType !== Node.ELEMENT_NODE) continue;
if (node.matches?.('a[href^="/ads/"]')) {
node.remove();
} else {
removeAds(node);
}
}
}
});
observer.observe(document.documentElement, {
childList: true,
subtree: true
});
})();