您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Enhance Roblox home page by removing Recommended, Sponsored and Innovation Awards sections.
当前为
// ==UserScript== // @name Roblox Recommended and Sponsored remover // @namespace Roblox Recommended and Sponsored remover // @version 1.2 // @description Enhance Roblox home page by removing Recommended, Sponsored and Innovation Awards sections. // @author Vexdel // @match https://*.roblox.com/home // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; function removeSections() { const sectionTitles = ["Sponsored", "Recommended For You", "Roblox Innovation Awards"]; sectionTitles.forEach(title => { Array.from(document.querySelectorAll('h2')).forEach(heading => { if (heading.textContent.includes(title)) { const container = heading.closest('div'); if (container) container.style.display = 'none'; } }); }); const filters = [ '.expand-home-content.wide-game-tile-game-grid.home-game-grid.game-grid', '.expand-home-content.wide-game-tile-carousel.game-carousel', 'div.expand-home-content.game-carousel:nth-of-type(8)', 'div.expand-home-content.game-carousel:nth-of-type(6)', '.text-default.font-sort-subtitle' ]; filters.forEach(selector => { document.querySelectorAll(selector).forEach(element => { element.style.display = 'none'; }); }); } const observer = new MutationObserver(removeSections); observer.observe(document.body, { childList: true, subtree: true, }); removeSections(); })();