View source for MediaWiki:Vector.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
document.addEventListener('DOMContentLoaded', function () {
var elements = document.querySelectorAll('body *'); // Выбираем все элементы на странице
elements.forEach(function (el) {
var bgColor = window.getComputedStyle(el).backgroundColor; // Получаем цвет фона элемента
// Проверяем, если цвет фона соответствует #D02019 (rgb(208, 32, 25))
if (bgColor === 'rgb(208, 32, 25)') {
el.classList.add('custom-selection'); // Добавляем класс для изменения стилей
}
});
});
$(document).ready(function() {
var newItem = $('<li class="personal-version" title="Version October 2024"><a href="/index.php?title=MediaWiki:Blog" style="text-decoration: none; color: inherit;">Version: Beta 5.1</a><hr style="display:inline-block; height: 20px; bottom: 2px; width: 1px; background: linear-gradient(to bottom, #DDD7CC, #702114); border: none; margin-left: 10px; vertical-align: middle;"></li>');
$('#p-personal > div > ul').prepend(newItem); // Добавляем элемент первым в списке навигации
});
$(document).ready(function() {
000
1:0
Return to MediaWiki:Vector.js.