Skip to content

Instantly share code, notes, and snippets.

@eagletmt
Created November 3, 2011 04:39
Show Gist options
  • Save eagletmt/1335792 to your computer and use it in GitHub Desktop.
Save eagletmt/1335792 to your computer and use it in GitHub Desktop.
AOJ で表(Problem Set や Problem Status)の要素をすべて表示させる
// ==UserScript==
// @name AOJ show all rows
// @namespace http://d.hatena.ne.jp/eagletmt/
// @include http://judge.u-aizu.ac.jp/onlinejudge/*
// ==/UserScript==
setTimeout(function() {
var $ = unsafeWindow.$;
if ($.jgrid) {
$('.ui-jqgrid-bdiv').css('height', 'auto');
var list = $('#list5');
var n = list.jqGrid('getGridParam', 'records');
if (n) {
list.jqGrid('setGridParam', {rowNum: n}).trigger('reloadGrid');
}
} else {
var t = document.getElementById('tableRanking');
if (t) {
GM_addStyle('#page .wrapper { width: 800px !important; }');
$('tr.dat').show();
$('.date').hide();
$('.wrapper > .pagenavi').hide();
t.removeAttribute('width');
}
}
}, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment