Remove Homepage Garbage

Removes everything from the roblox homepage deemed useless (you'll basically just see your friends, continue section, and favourites)

目前为 2025-05-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         Remove Homepage Garbage
// @namespace    https://www.roblox.com/home
// @version      2025-V-11
// @description  Removes everything from the roblox homepage deemed useless (you'll basically just see your friends, continue section, and favourites)
// @author       CMTG (@callmetreeguy on discord)
// @match        https://www.roblox.com/home
// @icon         https://www.google.com/s2/favicons?sz=64&domain=roblox.com
// @grant        none
// @license MIT
// ==/UserScript==


const DontDelete = {
    "Continue": true,
    "Favorites": true
}

function removeRecommendedSection() {
    const allGameGrids = document.querySelectorAll('div[data-testid="home-page-game-grid"]');
    allGameGrids.forEach(GameGrid => GameGrid.remove())

    const allContainers = document.querySelectorAll('div.game-sort-carousel-wrapper');
    //aria-label
    allContainers.forEach(container => {

        const ContainerText = container.querySelector("div.home-sort-header-container > div > *:first-child").getAttribute('aria-label')
        //ty roblox for inculding the aria-label <3

        if (!DontDelete[ContainerText]) {
            container.remove()
        }
    })

}
window.addEventListener('load', removeRecommendedSection);

const observer = new MutationObserver((mutations) => {
    mutations.forEach(() => {
        removeRecommendedSection();
    });
});

observer.observe(document.body, { childList: true, subtree: true });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址