FFZ Panel Resize 1.1.9

Расширение и перемещение панели эмодзи FFZ

当前为 2025-03-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name FFZ Panel Resize 1.1.9
  3. // @namespace http://tampermonkey.net/
  4. // @version 1.1.9
  5. // @description Расширение и перемещение панели эмодзи FFZ
  6. // @author gullampis810
  7. // @license MIT
  8. // @match *://*.twitch.tv/*
  9. // @icon https://png.pngtree.com/png-vector/20220703/ourmid/pngtree-send-dark-mode-glyph-icon-png-image_5561369.png
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12.  
  13.  
  14.  
  15. (function() {
  16. 'use strict';
  17. // кнопка Chat Paused Due to Scroll //
  18. const observer = new MutationObserver(() => {
  19. const buttonContainer = document.querySelector('.tw-absolute.tw-border-radius-medium.tw-bottom-0.tw-c-background-overlay.tw-c-text-overlay.tw-mg-b-1');
  20. if (buttonContainer) {
  21. buttonContainer.style.height = '34px';
  22. buttonContainer.style.minHeight = '34px';
  23. buttonContainer.style.maxHeight = '34px';
  24. console.log('Высота контейнера кнопки установлена на 34px');
  25. }
  26. });
  27.  
  28. observer.observe(document.body, { childList: true, subtree: true });
  29.  
  30.  
  31.  
  32. // Добавляем стили для изменения размеров контейнера эмодзи 1.1.4 old stable
  33. GM_addStyle(`
  34.  
  35. .emote-picker__controls-container.tw-relative {
  36. bottom: 3px;
  37. }
  38.  
  39. .emote-picker {
  40. width: 107rem !important; /* Увеличенная ширина */
  41. height: 100rem !important; /* Увеличенная высота */
  42. left: 24px; /* Сдвиг влево */
  43. position: relative;
  44. }
  45.  
  46. .ffz--emote-picker {
  47. height: 785px !important;
  48. position: relative !important;
  49. width: 1097px !important;
  50. left: -243px !important;
  51. }
  52.  
  53.  
  54. .ffz--emote-picker.ffz--emote-picker__tall .emote-picker__nav-content-overflow, .ffz--emote-picker.ffz--emote-picker__tall .emote-picker__tab-content {
  55. height: unset !important;
  56. max-height: 73rem !important;
  57. }
  58.  
  59. .tw-absolute.ffz-attached.ffz-attached--right.ffz-attached--up {
  60. width: 857px !important;
  61. right: 368px !important;
  62. }
  63.  
  64. .ffz-attached--up {
  65. bottom: 510% !important;
  66. }
  67.  
  68.  
  69. .tw-border-b.tw-border-l.tw-border-r.tw-border-t.tw-border-radius-medium.tw-c-background-base.tw-elevation-1 {
  70. width: 63px;
  71. height: 216px;
  72. }
  73.  
  74. .tw-absolute {
  75. position: absolute !important;
  76. height: 570px !important;
  77. }
  78.  
  79.  
  80. `);
  81.  
  82. console.log("[FFZ Emote Panel] Контейнер .emote-picker изменен: шире, выше, сдвинут влево.");
  83.  
  84. })();