⚙️ display enable

Enabled Hided oe disabled functionals!

目前為 2024-03-09 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name ⚙️ display enable
  3. // @namespace Wizzergod
  4. // @version 1.0.1
  5. // @description Enabled Hided oe disabled functionals!
  6. // @description:ru Включает отключёный или скрытй функционал!
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=hotpot.ai
  8. // @license MIT
  9. // @author Wizzergod
  10. // @match *://hotpot.ai/art-generator*
  11. // @match *://hotpot.ai/remove-background*
  12. // @match *://hotpot.ai/anime-generator*
  13. // @match *://hotpot.ai/logo-generator*
  14. // @match *://hotpot.ai/headshot/train*
  15. // @match *://hotpot.ai/colorize-picture*
  16. // @match *://hotpot.ai/restore-picture*
  17. // @match *://hotpot.ai/enhance-face*
  18. // @match *://hotpot.ai/drive*
  19. // @match *://hotpot.ai/s/*
  20. // @match *://hotpot.ai/upscale-photo*
  21. // @match *://hotpot.ai/sparkwriter*
  22. // @match *://hotpot.ai/background-generator*
  23. // @match *://hotpot.ai/lunar-new-year-headshot*
  24. // @match *://hotpot.ai/ai-avatar*
  25. // @match *://hotpot.ai/ai-editor*
  26. // @match *://hotpot.ai/ai-stock-photo*
  27. // @grant none
  28. // ==/UserScript==
  29.  
  30. (function() {
  31. 'use strict';
  32.  
  33. function showHiddenElements() {
  34. var elementsToCheck = document.querySelectorAll('#controlBox, #sidebarBox');
  35. elementsToCheck.forEach(function(element) {
  36. var hiddenElements = element.querySelectorAll('[style*="display:none"]');
  37. hiddenElements.forEach(function(hiddenElement) {
  38. hiddenElement.style.display = 'block';
  39. });
  40. });
  41. }
  42.  
  43. // Показывать скрытые элементы при загрузке страницы
  44. showHiddenElements();
  45.  
  46. // Отслеживание изменений каждые 2 секунды
  47. setInterval(function() {
  48. showHiddenElements();
  49. }, 2000);
  50. })();