ROBLOX: Enable Game Filter

Enable the 'Old-School' Game Filter, decent for finding the perfect game.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==

// @author       Kaiokeno
//               https://twitter.com/Kaiokenoh  //  https://github.com/Kaiokeno

// @name         ROBLOX: Enable Game Filter
// @description  Enable the 'Old-School' Game Filter, decent for finding the perfect game.
// @icon         https://i.imgur.com/wV7C3y1.png

// @match        *://*.roblox.com/games/?SortFilter*
// @namespace    https://www.roblox.com/
// @namespace    https://greasyfork.org/en/scripts/399626-roblox-enable-game-filter
// @supportURL   https://twitter.com/messages/733710878399467520-733710878399467520

// @license      MIT
// @version      0.0.12

// ==/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;