appendAmount

append model in amount

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         appendAmount
// @namespace    http://tampermonkey.net/
// @version      3.2
// @description  append model in amount
// @author       FengXia
// @match        http://47.107.106.156/*
// @match        http://122.13.25.247/*
// @icon
// @grant        none
// @license MIT
// ==/UserScript==


(function() {
    'use strict';
    let currentUrl = window.location.hostname;
    let name = document.querySelector('.userdetail');
    if (currentUrl.indexOf('247')<0){
        if (name) {
            let name_str = name.innerHTML
            if (name.innerHTML.indexOf('李国强&nbsp') > 0) {
                let modify_str = `<a href="https://app.powerbi.cn/view?r=eyJrIjoiZTYzYWI4ZmQtMWZiMy00ZmQ5LWI5OWYtNjVhZjE2NWJiN2RmI
            iwidCI6ImQxODE5NWE5LTQ0MGMtNDViYS04ODg1LTgyZmU3YmZhYTI2NCJ9" target="_blank" style="text-decoration: none;color: white;">
            ${name_str}</a>`;
                name.innerHTML = modify_str;
            } else if (name.innerHTML.indexOf('李湛辉') > 0) {
                let modify_str = `<a href="https://app.powerbi.cn/view?r=eyJrIjoiZTYzYWI4ZmQtMWZiMy00ZmQ5LWI5OWYtNjVhZjE2NWJiN2RmI
            iwidCI6ImQxODE5NWE5LTQ0MGMtNDViYS04ODg1LTgyZmU3YmZhYTI2NCJ9" target="_blank" style="text-decoration: none;color: white;">
            ${name_str}</a>`;
                name.innerHTML = modify_str;
            }
        }}
    else{
        if (name) {
            let name_str = name.innerHTML
            if (name.innerHTML.indexOf('李国强&nbsp') > 0) {
                let modify_str = `<a href="https://app.powerbi.cn/view?r=eyJrIjoiYTFmMTJkOTEtYWUzMC00YzdmLTg1NTUtYmRhYTJhNWIwZDg4IiwidCI6ImQxODE5NWE5LTQ0MGMtNDViYS04ODg1LTgyZmU3YmZhYTI2NCJ9" target="_blank" style="text-decoration: none;color: white;">
            ${name_str}</a>`;
                name.innerHTML = modify_str;
            } else if (name.innerHTML.indexOf('李湛辉') > 0) {
                let modify_str = `<a href="https://app.powerbi.cn/view?r=eyJrIjoiYTFmMTJkOTEtYWUzMC00YzdmLTg1NTUtYmRhYTJhNWIwZDg4IiwidCI6ImQxODE5NWE5LTQ0MGMtNDViYS04ODg1LTgyZmU3YmZhYTI2NCJ9" target="_blank" style="text-decoration: none;color: white;">
            ${name_str}</a>`;
                name.innerHTML = modify_str;
            }
        }
    }
})();