Open newtoneweb opened 6 hours ago
// Центрируем блок мини игры
function fixMinigamePosition() {
if (location.pathname.split("/").pop() !== "playground") return
const minigameBg = document.querySelector('.minigame-bg');
if (minigameBg) {
minigameBg.style.transform = 'none';
}
}
// Наблюдатель за изменениями в DOM
const observer = new MutationObserver(function (mutations) {
mutations.forEach(function (mutation) {
if (mutation.addedNodes.length) {
replaceScriptUrl();
fixMinigamePosition()
}
});
});
use Pull requests
use Pull requests
Hey have you seen the other reports I made, I think i made 3-4 of em 📦
// Центрируем блок мини игры function fixMinigamePosition() { if (location.pathname.split("/").pop() !== "playground") return const minigameBg = document.querySelector('.minigame-bg'); if (minigameBg) { minigameBg.style.transform = 'none'; } } // Наблюдатель за изменениями в DOM const observer = new MutationObserver(function (mutations) { mutations.forEach(function (mutation) { if (mutation.addedNodes.length) { replaceScriptUrl(); fixMinigamePosition() } }); });