Greasy Fork is available in English.

HotPot.ai NOADS

NOADS

Per 06-03-2024. Zie de nieuwste versie.

// ==UserScript==
// @name            HotPot.ai NOADS
// @namespace       Wizzergod
// @version         1.0.4
// @description     NOADS
// @icon            https://www.google.com/s2/favicons?sz=64&domain=hotpot.ai
// @license         MIT
// @author          Wizzergod
// @match           *://hotpot.ai/*
// ==/UserScript==

(function() {
    'use strict';

    // Объект с CSS стилями для скрытия элементов
    var styles = {
        'article.internalAdBox': 'none',
        'article:nth-of-type(1)': 'none',
        'article:nth-of-type(2)': 'none',
        'article:nth-of-type(3)': 'none',
        'article:nth-of-type(4)': 'none',
        'article:nth-of-type(5)': 'none',
        'article:nth-of-type(6)': 'none',
        'article:nth-of-type(7)': 'none',
        'article:nth-of-type(8)': 'none',
        'article:nth-of-type(9)': 'none',
        '#headerBox': 'none',
        '#rootGallery': 'none',
        '#apiAccess': 'none',
        '#rootFooter': 'none',
        '#disabled': 'none',
        '.disabled': 'none',
        '.topAdBox': 'none',
        '#.topAdBox': 'none',
        '.artMakerAdBox': 'none',
        '#artMakerAdBox': 'none',
        '#cookieOverlay': 'none',
        '#faq': 'none'
    };

    function addHideStyles() {
        var style = document.createElement('style');
        style.type = 'text/css';
        var css = '';
        for (var selector in styles) {
            css += selector + '{ display: ' + styles[selector] + ' !important; } ';
        }
        style.innerHTML = css;
        document.head.insertBefore(style, document.head.firstChild);
    }

    addHideStyles();

    // Функция для скрытия элементов
    function hideElements() {
        for (var selector in styles) {
            var elements = document.querySelectorAll(selector);
            elements.forEach(function(element) {
                element.style.display = styles[selector];
            });
        }
    }

    // Запуск функции при загрузке страницы
    window.addEventListener('load', hideElements);

})();