AMK-Online

Индикация онлайна, на мобильной версии!

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         AMK-Online
// @version      1.0
// @description  Индикация онлайна, на мобильной версии!
// @author       Chypakabra
// @match        
// @icon         
// @license      MIT
// @namespace https://greasyfork.org/users/751324
// ==/UserScript==

(function() {
    'use strict';

    const amkteam = getComputedStyle(document.documentElement);
    const version = amkteam.getPropertyValue('--amkteam-version').trim();
    const mediaQuery = window.matchMedia('(max-width: 767px)');

    if (version == '"4.7.12"') {
        if (mediaQuery.matches) {
            let elems = document.getElementsByClassName('cPost ipsBox ipsResponsive_pull  ipsComment  ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone');
            for( let i = 0; i < elems.length; i++) {
                let fu = elems[i].getElementsByClassName('fa fa-circle ipsOnlineStatus_online');
                let UserPhoto = elems[i].getElementsByClassName('ipsUserPhoto ipsUserPhoto_large');
                for( let i = 0; i < fu.length; i++) {
                    UserPhoto[i].setAttribute('style', 'border: 2px solid rgb(0, 0, 0)!important; box-shadow: 0 0 0 3px rgba(0, 175, 0, 0.75);');
                }
            }
        }
    }
})();