Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript==
// @name 清华选课系统显示优化
// @namespace http://tampermonkey.net/
// @version 0.2
// @description try to take over the world!
// @author clzls
// @match http://zhjwxk.cic.tsinghua.edu.cn/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var HtmlController = {
Enlarge:function(){
var prefix="width:100%;height: ";
var ratio = 39;
var ul_tag = document.getElementById('iframe1');
var content1 = document.getElementById('content_1');
var tmp,tmpo2;
if (ul_tag) {
ul_tag.style="min-width: 1024px; height: 1285px;";
}
if (content1) {
tmp = content1.childNodes[1].childNodes[1].childElementCount;
if (tmp && tmp > 0)
{
tmpo2 = prefix.concat(tmp * ratio + 100,"px;overflow-y:visible;overflow-x:visible;margin-right:0px;");
content1.style = tmpo2;
if (ul_tag) ul_tag.style="min-width: 1024px; height: ".concat(tmp * ratio + 200,"px;");
}
}
}
};
HtmlController.Enlarge();
// Your code here...
})();