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

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

目前為 2019-02-28 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);

})();