js-tampermonkey-public-scripts/Hoster DOMAIN INFO.user.js
Unkas Amanjolov 42b29defae first commit
2024-10-07 10:25:50 +05:00

22 lines
831 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==UserScript==
// @name Hoster DOMAIN INFO
// @namespace http://tampermonkey.net/
// @version 2024-01-03
// @description All serviceinfo__title add "white-space: pre-line"
// @author You
// @match https://hoster.kz/cabinet/
// @icon https://www.google.com/s2/favicons?sz=64&domain=hoster.kz
// @grant none
// ==/UserScript==
(function() {
// Находим все элементы с классом serviceinfo__title
var titles = document.querySelectorAll('.serviceinfo__title');
// Проходим по каждому найденному элементу
titles.forEach(function(title) {
// Применяем стиль с использованием атрибута style
title.setAttribute("style", "white-space: pre-line;");
});
})();