ROBLOX: Enable Game Filter

Bring back the old handy dandy Game Filter.

目前为 2020-04-09 提交的版本。查看 最新版本

// ==UserScript==

// @author       Rottweiler
// @namespace    https://greasyfork.org/en/scripts/399626-roblox-enable-game-filter

// @name         ROBLOX: Enable Game Filter
// @description  Bring back the old handy dandy Game Filter.
// @icon         https://i.imgur.com/wV7C3y1.png

// @license      MIT
// @version      0.0.10

// @match        *://*.roblox.com/games/?SortFilter*

// ==/UserScript==


function loadEvent() {
    new MutationObserver(function() {
        let getFilter = document.getElementsByClassName('filter-hidden');
        if(getFilter[0]) {
            Array.from(getFilter).forEach(function(GameFilter) {
                GameFilter.style.visibility = 'unset';
                GameFilter.style.height = 'unset';
            })
        };

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

window.onload = loadEvent;