HWM_Css_Modificator

Модификация шрифта и другого визуала

Från och med 2020-02-28. Se den senaste versionen.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        HWM_Css_Modificator
// @namespace   emptimd
// @description Модификация шрифта и другого визуала
// @include     /^https{0,1}:\/\/((www|qrator)\.heroeswm\.ru|178\.248\.235\.15)\/forum_messages\.php\?tid=\d+/
// @version     1.0.0
// ==/UserScript==

"use strict";

//----------------------------------------------------------------------------//

(function(){ // wrapper start

//----------------------------------------------------------------------------//
// Крч. Тут можно менять значения переменных типа размер шрифта
//----------------------------------------------------------------------------//

var forumFontSize = '0.85em'; // Размер шрифта на форуме, пистаь любое css значение (15px, 1em тд)

var forumFontSelector = 'table.c_darker td, table.c_darkers td a:link, table.c_darkers td a:visited';



// Создаём стиле и добовляем наши стили на страничку
var css = forumFontSelector + ' { font-size: '+forumFontSize+'; }',
    head = document.head || document.getElementsByTagName('head')[0],
    style = document.createElement('style');

head.appendChild(style);

style.type = 'text/css';
if (style.styleSheet){
  // This is required for IE8 and below.
  style.styleSheet.cssText = css;
} else {
  style.appendChild(document.createTextNode(css));
}

  
}()); // wrapper end