ROBLOX: Enable Game Filter

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

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

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