Unhide Filter

Bring back the old handy dandy Games Filter.

目前為 2020-04-05 提交的版本,檢視 最新版本

// ==UserScript==
// @author       Rottweiler
// @namespace    https://github.com/RottweiIer

// @name         Unhide Filter
// @description  Bring back the old handy dandy Games Filter.
// @icon         http://svgshare.com/i/a9.svg

// @match        *://*.roblox.com/games*
// @version 0.0.1.20200405173702
// ==/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, {
        childList: true,
        subtree: true
    });
}

window.onload = loadEvent;