ROBLOX: Enable Game Filter

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

  1. // ==UserScript==
  2.  
  3. // @author Kaiokeno
  4. // https://twitter.com/Kaiokenoh // https://github.com/Kaiokeno
  5.  
  6. // @name ROBLOX: Enable Game Filter
  7. // @description Enable the 'Old-School' Game Filter, decent for finding the perfect game.
  8. // @icon https://i.imgur.com/wV7C3y1.png
  9.  
  10. // @match *://*.roblox.com/games/?SortFilter*
  11. // @namespace https://www.roblox.com/
  12. // @namespace https://greatest.deepsurf.us/en/scripts/399626-roblox-enable-game-filter
  13. // @supportURL https://twitter.com/messages/733710878399467520-733710878399467520
  14.  
  15. // @license MIT
  16. // @version 0.0.12
  17.  
  18. // ==/UserScript==
  19.  
  20.  
  21. function loadEvent() {
  22. new MutationObserver(function() {
  23. let getFilter = document.getElementsByClassName('filter-hidden');
  24. if(getFilter[0]) {
  25. Array.from(getFilter).forEach(function(GameFilter) {
  26. GameFilter.style.visibility = 'unset';
  27. GameFilter.style.height = 'unset';
  28. })
  29. };
  30.  
  31. }) .observe(document, {
  32. subtree: true,
  33. childList: true
  34. });
  35. };
  36.  
  37. window.onload = loadEvent;