智慧城管优化详细信息排版(问题描述)

将问题描述显示为一行,加大字体

当前为 2019-02-28 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         智慧城管优化详细信息排版(问题描述)
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  将问题描述显示为一行,加大字体
// @author       You
// @match        http://tampermonkey.net/index.php?version=4.4&ext=dhdg&updated=true
// @grant        none
// @include      http://125.70.9.213: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 = '';
    // 不显示的标签: 任务号(1行1列) 问题来源(1行3列) 问题类型(2行1列) 案卷类型(2行3列) 案卷类型内容(2行4列) 采集员(6行3列) 所属区域(7行1列) 所属区域内容(7行2列)
    cssText += '#eGovaComponent_6_1, #eGovaComponent_6_18, #eGovaComponent_6_3, #eGovaComponent_6_20, #eGovaComponent_6_21, #eGovaComponent_6_12, #eGovaComponent_6_24, #eGovaComponent_6_25 {visibility:hidden!important;}';

    // 移动位置: 问题来源内容(1行4列)
    cssText += '#eGovaComponent_6_19 {left:269px!important; width:152px!important;}';
    // 移动位置: 问题类型内容(2行2列)
    cssText += '#eGovaComponent_6_4 {left:27px!important; width:78px!important;}';
    // 移动位置: 采集员内容(6行4列)
    cssText += '#eGovaComponent_6_16 {left:427px!important;}';
    // 调整位置: 任务号内容(1行2列)
    cssText += '#eGovaComponent_6_7 {width:152px!important;}';
    // 统一顶部对齐, 字体大小1.5em
    cssText += '#eGovaComponent_6_4, #eGovaComponent_6_7, #eGovaComponent_6_19, #eGovaComponent_6_16 {top:2px!important; font-size:1.4em!important; border-bottom:1px solid #220!important;}';

    // 移动位置: 大类 小类 细类 立案条件 问题描述
    cssText += '#eGovaComponent_6_5, #eGovaComponent_6_6, #eGovaComponent_6_22, #eGovaComponent_6_23 {top:35px!important;}';
    cssText += '#eGovaComponent_6_41, #eGovaComponent_6_42 {top:65px!important;}';
    cssText += '#eGovaComponent_6_35, #eGovaComponent_6_40 {top:95px!important; height:49px!important;}';
    cssText += '#eGovaComponent_6_8, #eGovaComponent_6_9 {top:145px!important;}';

    // 加长宽带: 小类名称内容 细类名称内容 立案条件内容
    cssText += '#eGovaComponent_6_23 {width:400px!important;max-width:400px!important;}';
    cssText += '#eGovaComponent_6_42, #eGovaComponent_6_40 {width:500px!important;max-width:500px!important;}';

    // 加大字体: 大类名称内容 小类名称内容 细类名称内容
    cssText += '#eGovaComponent_6_6, #eGovaComponent_6_23, #eGovaComponent_6_42 {font-size:1.4em!important; line-height:100%!important;}';

    // 移动位置: 所属社区(7行3列) 所属社区内容(7行4列) 所属街道(8行1列) 所属街道内容(8行2列)
    cssText += '#eGovaComponent_6_26, #eGovaComponent_6_27, #eGovaComponent_6_10, #eGovaComponent_6_11 {top:279px!important;}';
    // 移动地址描述使其在在所属街道和所属社区下方
    cssText += '#eGovaComponent_6_33, #eGovaComponent_6_39 {top:307px!important; width:500px!important; max-width:500px!important;}';

    // 问题描述
    var someCSSMiaoshu = '#eGovaComponent_6_9 {';
    someCSSMiaoshu += 'height:120px!important; width:500px!important; max-width:500px!important;';
    someCSSMiaoshu += 'white-space:normal!important; overflow:visible!important;';
    someCSSMiaoshu += 'font-size:2em!important; line-height:130%;}';

    var someCSS = cssText + someCSSMiaoshu;

    var someReg = new RegExp('t_6','g');
    var another = someCSS.replace(someReg,'t_19');

    addGlobalStyle(someCSS + another);

})();