您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
Enhance Roblox home page by removing Recommended and Sponsored sections.
当前为
// ==UserScript== // @name Roblox Recommended and Sponsored remover // @namespace Roblox Recommended and Sponsored remover // @version 1.0 // @description Enhance Roblox home page by removing Recommended and Sponsored sections. // @author Vexdel // @match https://*.roblox.com/home // @grant GM_addStyle // ==/UserScript== (function() { 'use strict'; // Function to add CSS styles to hide elements function addGlobalStyle(css) { const style = document.createElement('style'); style.textContent = css; document.head.append(style); } // CSS rules to hide elements const cssToHide = ` .container-header h2:contains("Recommended For You") { display: none !important; } .expand-home-content.wide-game-tile-game-grid.home-game-grid.game-grid { display: none !important; } #place-list > div > div > div:nth-child(5) > div, #place-list > div > div > div:nth-child(6) { display: none !important; } #place-list > div > div > div:nth-child(2) > div.container-header, #place-list > div > div > div:nth-child(7) > div.container-header, #place-list > div > div > div:nth-child(11) > div.container-header, #place-list > div > div > div:nth-child(10) > div.container-header { display: none !important; } `; // Apply the CSS styles to hide elements addGlobalStyle(cssToHide); })();