Just forces ya.ru always show services panel above search box
// ==UserScript== // @name Force Yandex homepage show services panel // @namespace https://github.com/MihaxXx // @version 0.1.2 // @description Just forces ya.ru always show services panel above search box // @description:ru Форсирует постоянное отображение панели сервисов на главной странице Яндекса // @license MIT // @author Miha_xXx // @match https://ya.ru/ // @icon https://www.google.com/s2/favicons?sz=64&domain=ya.ru // @grant none // ==/UserScript== 'use strict'; fixClass(); function fixClass() { if (!document.body.classList.contains('body_search_yes')) { document.body.classList.add('body_search_yes'); } } const observer = new MutationObserver((mutations) => { if (mutations[0].attributeName === 'class') { fixClass(); } }); observer.observe(document.body,{ attributes: true });