您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
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); })();