try to take over the world!
当前为
// ==UserScript==
// @name 优化数字政通问题描述显示
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author You
// @match http://tampermonkey.net/index.php?version=4.4&ext=dhdg&updated=true
// @grant none
// @include http://125.70.9.215:8001/*
// ==/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 += '#eGovaComponent_6_24, #eGovaComponent_6_25 {visibility:hidden!important;}';
// + 简化采集员显示
// 去除采集员标题
cssText += '#eGovaComponent_6_12 {visibility:hidden!important;}';
// 移动采集员内容
cssText += '#eGovaComponent_6_16 {top:2px!important; left:472px!important;}';
// + 移动所属社区
cssText += '#eGovaComponent_6_26, #eGovaComponent_6_27 {top:223px!important;}';
// 问题描述
var someCSSMiaoshu = '#eGovaComponent_6_9 {';
someCSSMiaoshu += 'display:inline-block!important;';
someCSSMiaoshu += 'overflow:visible!important; text-overflow:ellipsis!important;';
someCSSMiaoshu += 'width:500px!important; font-size:1.5em!important';
someCSSMiaoshu += '}';
var someCSS = cssText + someCSSMiaoshu;
var someReg = new RegExp('t_6','g');
var another = someCSS.replace(someReg,'t_19');
addGlobalStyle(someCSS + another);
})();