DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Jonhnny has posted 4 posts at DZone. View Full User Profile

UVa Online Judge Clean - GreaseMonkey

10.17.2008
| 3834 views |
  • submit to reddit
        // description of your code here

// ==UserScript==
// @name           UVa Online Judge Clean
// @author         Jonhnny Weslley
// @namespace      http://icpcres.ecs.baylor.edu/
// @description    UVa Online Judge Clean
// @include        http://icpcres.ecs.baylor.edu/onlinejudge/*
// ==/UserScript==

function hide(tag) {

  tag.style.visibility = "hidden";
  tag.style.height = 0;

}

hide(document.getElementById('header'));
hide(document.getElementById('footer'));
var modules = document.getElementsByClassName('moduletable')
hide(modules[modules.length - 1]);