|
68 | 68 | for (var i = 0; i < playerLoaderElements.length; i++) { |
69 | 69 | playerLoaderElements[i].classList.add('custom'); |
70 | 70 | playerLoaderElements[i].style.backgroundImage = 'url(\'' + escapedUrl + '\')'; |
71 | | - playerLoaderElements[i].style.filter = filterValue; |
| 71 | + playerLoaderElements[i].style.setProperty('filter', filterValue, 'important'); |
72 | 72 | playerLoaderElements[i].style.backgroundColor = 'transparent'; |
73 | 73 | } |
74 | 74 |
|
75 | 75 | var element = document.querySelector('.activity__loader'); |
76 | 76 | if (element) { |
77 | 77 | element.style.backgroundImage = 'url(\'' + escapedUrl + '\')'; |
78 | | - element.style.filter = filterValue; |
| 78 | + element.style.setProperty('filter', filterValue, 'important'); |
79 | 79 | element.style.backgroundColor = 'transparent'; |
80 | 80 | if (Lampa.Storage.get('ani_active')) { |
81 | 81 | element.classList.add('active'); |
|
87 | 87 | for (var i = 0; i < balanserElements.length; i++) { |
88 | 88 | balanserElements[i].classList.add('custom'); |
89 | 89 | balanserElements[i].style.backgroundImage = 'url(\'' + escapedUrl + '\')'; |
90 | | - balanserElements[i].style.filter = filterValue; |
| 90 | + balanserElements[i].style.setProperty('filter', filterValue, 'important'); |
91 | 91 | balanserElements[i].style.backgroundColor = 'transparent'; |
92 | 92 | } |
93 | 93 |
|
94 | 94 | var loadingLayerIco = document.querySelectorAll('.loading-layer__ico'); |
95 | 95 | for (var i = 0; i < loadingLayerIco.length; i++) { |
96 | 96 | loadingLayerIco[i].classList.add('custom'); |
97 | 97 | loadingLayerIco[i].style.backgroundImage = 'url(\'' + escapedUrl + '\')'; |
98 | | - loadingLayerIco[i].style.filter = filterValue; |
| 98 | + loadingLayerIco[i].style.setProperty('filter', filterValue, 'important'); |
99 | 99 | loadingLayerIco[i].style.backgroundColor = 'transparent'; |
100 | 100 | } |
101 | 101 |
|
|
109 | 109 | youtubeNeedclickElements[i].style.backgroundPosition = '50% 50%'; |
110 | 110 | youtubeNeedclickElements[i].style.backgroundSize = '80% 80%'; |
111 | 111 | youtubeNeedclickElements[i].style.backgroundColor = 'transparent'; |
112 | | - youtubeNeedclickElements[i].style.filter = filterValue; |
| 112 | + youtubeNeedclickElements[i].style.setProperty('filter', filterValue, 'important'); |
113 | 113 | youtubeNeedclickElements[i].style.zIndex = '9999'; |
114 | 114 | youtubeNeedclickElements[i].style.width = '8em'; |
115 | 115 | youtubeNeedclickElements[i].style.height = '8em'; |
|
128 | 128 | modalLoadingElements[i].style.backgroundPosition = '50% 50%'; |
129 | 129 | modalLoadingElements[i].style.backgroundSize = 'contain'; |
130 | 130 | modalLoadingElements[i].style.backgroundColor = 'transparent'; |
131 | | - modalLoadingElements[i].style.filter = filterValue; |
| 131 | + modalLoadingElements[i].style.setProperty('filter', filterValue, 'important'); |
132 | 132 | modalLoadingElements[i].style.display = 'block'; |
133 | 133 | modalLoadingElements[i].style.zIndex = '9999'; |
134 | 134 | console.log('Applied custom loader to .modal-loading:', modalLoadingElements[i], 'URL:', escapedUrl); |
|
158 | 158 | setTimeout(function checkPrvElement() { |
159 | 159 | var prvElement = document.querySelector('.settings-param[data-name="select_ani_mation"] .activity__loader_prv'); |
160 | 160 | if (prvElement) { |
161 | | - prvElement.style.filter = filterValue; |
162 | | - prvElement.style.webkitFilter = filterValue; |
| 161 | + prvElement.style.setProperty('filter', filterValue, 'important'); |
| 162 | + prvElement.style.setProperty('-webkit-filter', filterValue, 'important'); |
163 | 163 | } else { |
164 | 164 | setTimeout(checkPrvElement, 500); |
165 | 165 | } |
|
256 | 256 | '@media (max-width: 768px) { .ani_picker_container { grid-template-columns: 1fr; } }' + |
257 | 257 | '.ani_loader_row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; justify-content: center; }' + |
258 | 258 | '.ani_loader_square { width: 35px; height: 35px; border-radius: 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; cursor: pointer; color: #ffffff !important; font-size: 10px; text-align: center; }' + |
259 | | - '.ani_loader_square img { max-width: 30px; max-height: 30px; object-fit: contain; filter: ' + filterValue + '; }' + |
| 259 | + '.ani_loader_square img { max-width: 30px; max-height: 30px; object-fit: contain; filter: ' + filterValue + ' !important; }' + |
260 | 260 | '.ani_loader_square.focus { border: 0.3em solid ' + focusBorderColor + '; transform: scale(1.1); }' + |
261 | 261 | '.ani_loader_square.default { width: 35px; height: 35px; border-radius: 4px; }' + |
262 | 262 | '.ani_loader_square.default img { max-width: 30px; max-height: 30px; object-fit: contain; }' + |
|
0 commit comments