Roblox - Home Page Improvements

Remove "Recommended For You" and "Sponsored" sections from Roblox home page.

// ==UserScript==
// @name         Roblox - Home Page Improvements
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Remove "Recommended For You" and "Sponsored" sections from Roblox home page.
// @author       loui771w
// @license      MIT
// @match        https://www.roblox.com/home
// @icon         https://www.google.com/s2/favicons?sz=64&domain=roblox.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function removeSections() {
        console.log('Attempting to remove sections...');

        const recommendedSection = document.querySelector('[data-testid="home-page-game-grid"]');
        if (recommendedSection) {
            console.log('Removing Recommended For You section...');
            recommendedSection.remove();
        }

        const sections = document.querySelectorAll('.game-sort-carousel-wrapper');
        sections.forEach(section => {
            const header = section.querySelector('.game-sort-header-container .sort-header');
            if (header && header.textContent.includes('Sponsored')) {
                console.log('Removing Sponsored section...');
                section.remove();
            }
        });
    }

    window.addEventListener('load', removeSections);

    const observer = new MutationObserver(removeSections);
    observer.observe(document.body, { childList: true, subtree: true });

    setInterval(removeSections, 5000);
})();