Skip to content

Instantly share code, notes, and snippets.

@socrateslee
Last active May 6, 2019 14:53
Show Gist options
  • Save socrateslee/69169c58be9cf2e0e3019b09b680461b to your computer and use it in GitHub Desktop.
Save socrateslee/69169c58be9cf2e0e3019b09b680461b to your computer and use it in GitHub Desktop.
A Tampermonkey userscripts for better display of data.stats.gov.cn
// ==UserScript==
// @name better data.stats.gov.cn
// @namespace https://gist.github.com/socrateslee/69169c58be9cf2e0e3019b09b680461b
// @version 0.1
// @description Inject css for better display of data.stats.gov.cn
// @author https://github.com/socrateslee
// @include http://data.stats.gov.cn/easyquery.htm*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var css = `
#header,
.top-wrap,
#footer,
.about,
#main {
width: 95% !important;
}
#main,
#footer {
padding-left: 0 !important;
padding-right: 0 !important;
}
#main-container .main-left {
min-width: 250px !important;
width: 19% !important;
}
#main-container .main-right {
min-width: 692px !important;
width: 80% !important;
}
#navbar,
#m-wrap,
#main-container,
#main-container .lockTable_container,
#main-container .lockTable_container .table_container_head,
#main-container .lockTable_container .public_table .table_column,
#main-container .lockTable_container .table_container_main {
width: 100% !important;
}
.splitbar{
display: none;
}
`
var style = document.createElement('STYLE');
style.type = 'text/css';
style.appendChild(document.createTextNode(css));
document.head.appendChild(style);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment