Greasy Fork

Greasy Fork is available in English.

优化数字政通问题描述显示

try to take over the world!

当前为 2017-10-27 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);

})();