· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Grease Monkey Script


1.1. oneaday

// ==UserScript==
// @name           oneaday contents
// @namespace      window
// @description    ugly id
// @include        http://www.oneaday.co.kr/html/old_goods_view.php?*
// ==/UserScript==
var i = 0;
var ids;
while(ids = document.getElementById('contents')) {
	ids.id = 'contents_' + i;
	i ++;
}
setTimeout('show_layer = function(tgt, disptype)'
 + '{'
 + '	if(!disptype) {'
 + '		disptype = "inline";'
 + '	}'
 + '	var vsb = document.getElementById(tgt);'
 + '	var pattern = /^([A-Za-z_]+)[0-9]*$/;'
 + '	pattern.test(tgt);'
 + '	var hdn, i = 0;'
 + '	while((hdn = document.getElementById(RegExp.$1 + i)) != null) {'
 + '		hdn.style.display = "none";'
 + '		i ++;'
 + '	}'
 + '	if(vsb != null) {'
 + '		vsb.style.display = disptype;'
 + '	}'
 + '}', 1000);
setTimeout('tabindex = function(num) { window.show_layer("contents_" + num); }', 1000);

ID
Password
Join
If you make a mistake you right it immediately to the best of your ability.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2008-06-21 09:31:37
Processing time 0.0026 sec