Greasy Fork 支持简体中文。

ROBLOX: Enable Game Filter

Bring back the old handy dandy Game Filter.

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

  1. // ==UserScript==
  2.  
  3. // @author Rottweiler
  4. // @namespace https://greasyfork.org/en/scripts/399626-roblox-enable-game-filter
  5.  
  6. // @name ROBLOX: Enable Game Filter
  7. // @description Bring back the old handy dandy Game Filter.
  8. // @icon https://i.imgur.com/wV7C3y1.png
  9.  
  10. // @license MIT
  11. // @version 0.0.10
  12.  
  13. // @match *://*.roblox.com/games/?SortFilter*
  14.  
  15. // ==/UserScript==
  16.  
  17.  
  18. function loadEvent() {
  19. new MutationObserver(function() {
  20. let getFilter = document.getElementsByClassName('filter-hidden');
  21. if(getFilter[0]) {
  22. Array.from(getFilter).forEach(function(GameFilter) {
  23. GameFilter.style.visibility = 'unset';
  24. GameFilter.style.height = 'unset';
  25. })
  26. };
  27.  
  28. }) .observe(document, {
  29. subtree: true,
  30. childList: true
  31. });
  32. };
  33.  
  34. window.onload = loadEvent;