Greasy Fork is available in English.

简化监督员热点图页面

简化监督员热点图页面,以便截图

// ==UserScript==
// @name         简化监督员热点图页面
// @namespace    http://tampermonkey.net/
// @version      1.0.1
// @description  简化监督员热点图页面,以便截图
// @author       You
// @match        http://tampermonkey.net/index.php?version=4.4&ext=dhdg&updated=true
// @grant        none
// @include      http://10.1.235.36:6888/*
// ==/UserScript==

(function() {
    'use strict';

    function addGlobalStyle(css) {
        var head, style;
        head = document.getElementsByTagName('head')[0];
        if (!head) { return; }
        style = document.createElement('style');
        style.type = 'text/css';
        style.innerHTML = css;
        head.appendChild(style);
    }

    var cssText = '';

    cssText += '.app-screen-home-left-page {display:none!important;}';
    cssText += '.app-screen-home-right-page {display:none!important;}';
    cssText += '#map_zoom_slider {display:none!important;}';

    var someReg = new RegExp('t_6','g');
    var cssText2 = cssText.replace(someReg,'t_19');

    addGlobalStyle(cssText);

})();