Реклама на DTF. Отключаем без ад-блокера

Я всегда использовал АдБлокеры для сайтов, но сегодняшним вечером, любимый ДТФ не дает прогрузить страницу из-за включенного ад-блокера:

Реклама на DTF. Отключаем без ад-блокера

Выключил и прифигел, с кол-ва рекламы на сайте. Запихали абсолютно везде.
Ну теперь перейдем к самому вкусному:
1.Устанавливаем расширение Tampermonkey для своего браузера.
2. Создаем скрипт:

// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 2025-09-10 // @description try to take over the world! // @author me_author // @match https://dtf.ru/* // @icon https://www.google.com/s2/favicons?sz=64&domain=dtf.ru // @grant none // ==/UserScript== (function() { 'use strict'; function removeAds() { document.querySelectorAll('div.rotator.rotator--limitless').forEach(el => el.remove()); document.querySelectorAll('div.rotator.feed-page__banner').forEach(el => el.remove()); document.querySelectorAll('div.supbar.supbar--top').forEach(el => el.remove()); document.querySelectorAll('div.ZVB9w3pL').forEach(el => el.remove()); document.querySelectorAll('div.lZiytKLX.LB75O7ko').forEach(el => el.remove()); document.querySelectorAll('div.rotator.entry-rotator').forEach(el => el.remove()); document.querySelectorAll('div.rotator.comments-rotator').forEach(el => el.remove()); } removeAds(); const observer = new MutationObserver(() => { removeAds(); }); observer.observe(document.body, { childList: true, subtree: true }); })();

3.Сохраняем, включаем и радуемся :)
Было:

Реклама на DTF. Отключаем без ад-блокера

Стало:

Реклама на DTF. Отключаем без ад-блокера
7
9 комментариев