// ==UserScript== // @name Kinozal.tv Vanilla Sky (Firefox) // @namespace Land of the Valar // @version 0.9.5 // @description Vanilla Sky тема для Kinozal.tv // @author Nemo1 // @match *://kinozal.tv/* // @match *://forum.kinozal.tv/* // @match *://kinozal.guru/* // @match *://forum.kinozal.guru/* // @match *://*.appspot.com/* // @match *://kinozal-tv.appspot.com/* // @match *://forum-kinozal-tv.appspot.com/* // @match *://*.kinozal4me.site/* // @match *://kinozal4me.site/* // @match *://*.kinozal4me.lol/* // @match *://kinozal4me.lol/* // @grant GM_addStyle // @grant GM_xmlhttpRequest // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @connect i.postimg.cc // @connect i.ibb.co // @connect * // @icon https://kinozal.tv/pic/favicon.ico // @license MIT // @run-at document-start // @downloadURL https://update.greasyfork.icu/scripts/510006/Kinozaltv%20Vanilla%20Sky%20%28Firefox%29.user.js // @updateURL https://update.greasyfork.icu/scripts/510006/Kinozaltv%20Vanilla%20Sky%20%28Firefox%29.meta.js // ==/UserScript== //*** //Curtains Changer 0.1 //*** (function() { 'use strict'; // Set this variable manually: // 0 = disabled (default) // 1 = enabled var blueCurtains = 0; // Change to 1 to enable blue curtains if (blueCurtains === 1) { // Inject custom CSS to override the curtain background images // and limit the background image size to 34x215 pixels. GM_addStyle(` /* Replace left curtain image and limit its size */ #header .zan_l { background-image: url("https://i.ibb.co/HDLLd4RF/l-portiere-blue-75.png") !important; background-size: 34px 215px !important; } /* Replace right curtain image and limit its size */ #header .zan_r { background-image: url("https://i.ibb.co/ZRk2Z6WN/r-portiere-blue-75.png") !important; background-size: 34px 215px !important; } `); console.debug("Curtain replacement enabled: Custom curtain images with limited size (34x215) have been applied."); } else { console.debug("Curtain replacement disabled: Original curtain images remain unchanged."); } })(); //*** //Kinozal Menu Enhancer 1.9 //*** (function() { 'use strict'; // Hide the original images before they are loaded GM_addStyle(` img[src="/pic/bnr_pay_sm.jpg"], img[src="/pic/banners/pay_bn2.png"] { visibility: hidden !important; } `); // Define the replacements for menu items const replacements = [ { original: 'Меню раздач', replacement: ' Меню раздач' }, { original: 'Прочтите рекомендации', replacement: ' Правила и рекомендации' }, { original: 'Переходящие кубки', replacement: '🏆 Переходящие кубки' }, { original: 'Топ раздач', replacement: '⭐ Топ раздач' }, { original: 'Темы форума', replacement: '🗎 Темы форума' }, { original: 'День рождения', replacement: '🎂 День рождения' }, { original: 'Статистика трекера', replacement: '📊 Статистика трекера' } ]; // Wait for the DOM to load before modifying the menu and images window.addEventListener('DOMContentLoaded', function() { // Search for all elements var elements = document.querySelectorAll('*'); elements.forEach(function(element) { replacements.forEach(function({ original, replacement }) { if (element.textContent.includes(original)) { console.log(`Found element containing "${original}":`, element); // Check if the found element is within a