Nutaku Web Games responsive + customizations

Nutaku Web Games are more suitable for wide screens.

  1. /* ==UserStyle==
  2. @name Nutaku Web Games responsive + customizations
  3. @version 1.0.0
  4. @description Nutaku Web Games are more suitable for wide screens.
  5. @author BreatFR (https://breat.fr)
  6. @namespace https://gitlab.com/breatfr
  7. @homepageURL https://gitlab.com/breatfr/nutaku-web-games
  8. @supportURL https://discord.gg/Q8KSHzdBxs
  9. @license AGPL-3.0-or-later; https://www.gnu.org/licenses/agpl-3.0.txt
  10. @preprocessor stylus
  11.  
  12. @var checkbox noheader "No header" 1
  13. @var checkbox widemode "Wide mode" 0
  14. @var checkbox widemodeplus "Wide mode+" 1
  15. ==/UserStyle== */
  16.  
  17. /* === Credits ===
  18. Website https://breat.fr
  19. facebook https://www.facebook.com/breatfroff
  20. mastodon https://mastodon.social/@breat_fr
  21. telegram https://t.me/breatfr
  22. vk https://vk.com/breatfroff
  23. X (twitter) https://x.com/breatfroff
  24. === Credits === */
  25.  
  26. @-moz-document regexp("https://www\\.nutaku\\.net/.+/games/.+/play/") {
  27. if noheader {
  28. header {
  29. display: none !important;
  30. height: 0 !important;
  31. }
  32. .main-content,
  33. .main-content.play {
  34. padding: 0 !important;
  35. }
  36. .game-play-full {
  37. margin: 0 !important;
  38. position: absolute !important;
  39. bottom: 0;
  40. top: 0;
  41. left: 0;
  42. right: 0;
  43. height: 100vh !important;
  44. max-height: 100vh !important;
  45. min-height: 100vh !important;
  46. }
  47. div[style*="height:"],
  48. iframe[style*="height:"] {
  49. height: 100vh !important;
  50. max-height: 100vh !important;
  51. }
  52. }
  53. if (widemode || widemodeplus) {
  54. body {
  55. overflow-y: hidden;
  56. }
  57. }
  58. }
  59.  
  60. @-moz-document regexp("https://osapi\\.nutaku\\.com/gadgets/ifr.*") {
  61. :root {
  62. --themeversion: 'Theme v1.0.0';
  63. --author: 'by BreatFR (https://breat.fr)';
  64. --link: ' https://gitlab.com/breatfr/nutaku-web-games ';
  65. }
  66. #loader-wrapper::after {
  67. background-color: rgba(211,211,211,0.5);
  68. border-radius: .5em;
  69. color: white;
  70. content: var(--themeversion) ' · ' var(--author) '\A' url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBoZWlnaHQ9IjIwIiB3aWR0aD0iMjAiIHN0eWxlPSJ0cmFuc2Zvcm06IHNjYWxlWSgtMSk7Ij48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNS4xIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjQgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZmlsbD0iI2NiY2JjYiIgZD0iTTMwNyAzNC44Yy0xMS41IDUuMS0xOSAxNi42LTE5IDI5LjJ2NjRIMTc2Qzc4LjggMTI4IDAgMjA2LjggMCAzMDRDMCA0MTcuMyA4MS41IDQ2Ny45IDEwMC4yIDQ3OC4xYzIuNSAxLjQgNS4zIDEuOSA4LjEgMS45YzEwLjkgMCAxOS43LTguOSAxOS43LTE5LjdjMC03LjUtNC4zLTE0LjQtOS44LTE5LjVDMTA4LjggNDMxLjkgOTYgNDE0LjQgOTYgMzg0YzAtNTMgNDMtOTYgOTYtOTZoOTZ2NjRjMCAxMi42IDcuNCAyNC4xIDE5IDI5LjJzMjUgMyAzNC40LTUuNGwxNjAtMTQ0YzYuNy02LjEgMTAuNi0xNC43IDEwLjYtMjMuOHMtMy44LTE3LjctMTAuNi0yMy44bC0xNjAtMTQ0Yy05LjQtOC41LTIyLjktMTAuNi0zNC40LTUuNHoiLz48L3N2Zz4=") var(--link) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBoZWlnaHQ9IjIwIiB3aWR0aD0iMjAiIHRyYW5zZm9ybT0icm90YXRlKDE4MCkiPjwhLS0hRm9udCBBd2Vzb21lIEZyZWUgNi41LjEgYnkgQGZvbnRhd2Vzb21lIC0gaHR0cHM6Ly9mb250YXdlc29tZS5jb20gTGljZW5zZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tL2xpY2Vuc2UvZnJlZSBDb3B5cmlnaHQgMjAyNCBGb250aWNvbnMsIEluYy4tLT48cGF0aCBmaWxsPSIjY2JjYmNiIiBkPSJNMzA3IDM0LjhjLTExLjUgNS4xLTE5IDE2LjYtMTkgMjkuMnY2NEgxNzZDNzguOCAxMjggMCAyMDYuOCAwIDMwNEMwIDQxNy4zIDgxLjUgNDY3LjkgMTAwLjIgNDc4LjFjMi41IDEuNCA1LjMgMS45IDguMSAxLjljMTAuOSAwIDE5LjctOC45IDE5LjctMTkuN2MwLTcuNS00LjMtMTQuNC05LjgtMTkuNUMxMDguOCA0MzEuOSA5NiA0MTQuNCA5NiAzODRjMC01MyA0My05NiA5Ni05Nmg5NnY2NGMwIDEyLjYgNy40IDI0LjEgMTkgMjkuMnMyNSAzIDM0LjQtNS40bDE2MC0xNDRjNi43LTYuMSAxMC42LTE0LjcgMTAuNi0yMy44cy0zLjgtMTcuNy0xMC42LTIzLjhsLTE2MC0xNDRjLTkuNC04LjUtMjIuOS0xMC42LTM0LjQtNS40eiIvPjwvc3ZnPg==");
  71. bottom: 20px;
  72. display: flex;
  73. flex-direction: column;
  74. font-size: 18px;
  75. left: 10px;
  76. padding: 10px;
  77. position: absolute;
  78. text-align: center;
  79. width: max-content;
  80. white-space: pre-line;
  81. }
  82. if (widemode || widemodeplus) {
  83. .main-container,
  84. #game-container,
  85. #loader-wrapper,
  86. #unity-container,
  87. #unityContainer,
  88. #unityContainer > video,
  89. #unityContainerCanvas,
  90. #unity-canvas {
  91. border: none !important;
  92. bottom: 0 !important;
  93. height: 100vh !important;
  94. max-height: 100vh !important;
  95. left: 0 !important;
  96. margin: 0 !important;
  97. right: 0 !important;
  98. top: 0 !important;
  99. transform: none !important;
  100. z-index: 999999 !important;
  101. }
  102. .social-icon,
  103. #left-banner,
  104. #right-banner {
  105. display: none !important;
  106. width: 0 !important;
  107. }
  108. .main {
  109. position: initial !important;
  110. }
  111. .column,
  112. .columns {
  113. margin: 0 !important;
  114. padding: 0 !important;
  115. }
  116. }
  117. if widemode {
  118. .main-container,
  119. #game-container,
  120. #loader-wrapper,
  121. #unity-container,
  122. #unityContainer,
  123. #unityContainer > video,
  124. #unityContainerCanvas,
  125. #unity-canvas {
  126. margin: 0 auto !important;
  127. max-width: 100% !important;
  128. width: auto !important;
  129. }
  130. }
  131. if widemodeplus {
  132. .main-container,
  133. #game-container,
  134. #loader-wrapper,
  135. #unity-container,
  136. #unityContainer,
  137. #unityContainer > video,
  138. #unityContainerCanvas,
  139. #unity-canvas {
  140. max-width: 100% !important;
  141. min-width: 100% !important;
  142. width: 100% !important;
  143. }
  144. }
  145. }