Created
December 3, 2012 09:18
-
-
Save summivox/4193814 to your computer and use it in GitHub Desktop.
修复清华选课系统在chrome下不能正常显示表格的问题
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
` | |
// ==UserScript== | |
// @name thu-grid-fix | |
// @namespace http://github.com/smilekzs | |
// @version 0.1.1 | |
// @description 修复清华选课系统在chrome下不能正常显示表格的问题 | |
// @include http*://*.cic.tsinghua.edu.cn/* | |
// ==/UserScript== | |
` | |
for el in document.getElementsByClassName('active-templates-row') | |
el.style.overflowX='hidden' | |
for el in document.getElementsByClassName('active-row-cell') | |
el.style.cssText='display:block; float:left; padding: 0px 0px; margin-right: -1px; overflow-x: hidden;' | |
for el in document.getElementsByClassName('active-box-normal') | |
el.style.cssText='display: block; float: left; overflow-x: hidden;' | |
for el in document.getElementsByClassName('active-box-item') | |
el.style.cssText='line-height: 1.2em !important; padding-top: 0.3em !important;' | |
for el in document.getElementsByClassName('active-scroll-corner') | |
el.style.cssText='visibility: hidden;' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated by CoffeeScript 1.3.3 | |
(function() { | |
// ==UserScript== | |
// @name thu-grid-fix | |
// @namespace http://github.com/smilekzs | |
// @version 0.1.1 | |
// @description 修复清华选课系统在chrome下不能正常显示表格的问题 | |
// @include http*://*.cic.tsinghua.edu.cn/* | |
// ==/UserScript== | |
; | |
var el, _i, _j, _k, _l, _len, _len1, _len2, _len3, _len4, _m, _ref, _ref1, _ref2, _ref3, _ref4; | |
_ref = document.getElementsByClassName('active-templates-row'); | |
for (_i = 0, _len = _ref.length; _i < _len; _i++) { | |
el = _ref[_i]; | |
el.style.overflowX = 'hidden'; | |
} | |
_ref1 = document.getElementsByClassName('active-row-cell'); | |
for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { | |
el = _ref1[_j]; | |
el.style.cssText = 'display:block; float:left; padding: 0px 0px; margin-right: -1px; overflow-x: hidden;'; | |
} | |
_ref2 = document.getElementsByClassName('active-box-normal'); | |
for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) { | |
el = _ref2[_k]; | |
el.style.cssText = 'display: block; float: left; overflow-x: hidden;'; | |
} | |
_ref3 = document.getElementsByClassName('active-box-item'); | |
for (_l = 0, _len3 = _ref3.length; _l < _len3; _l++) { | |
el = _ref3[_l]; | |
el.style.cssText = 'line-height: 1.2em !important; padding-top: 0.3em !important;'; | |
} | |
_ref4 = document.getElementsByClassName('active-scroll-corner'); | |
for (_m = 0, _len4 = _ref4.length; _m < _len4; _m++) { | |
el = _ref4[_m]; | |
el.style.cssText = 'visibility: hidden;'; | |
} | |
}).call(this); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment