N: 다음, P:이전, L: 목록
A: 작은 익명, B: 큰 익명, C: 컴터게임
잠깐 업글..
E: 목록 맨 끝.
엔터: 목록의 첫 글 보기
글 번호 입력 후 엔터치면 해당 글 보기.
더보기
// ==UserScript==
// @name kids key
// @namespace kids
// @description kids key
// @include http://kidsb.net/cgi-bin/Boardlist?*
// ==/UserScript==
/**
*
* N: Next
* P: Prev
* L: List
* A: anony
* B: big anony
* C: computer game
*/
function go_to(target) {
all_a = document.getElementsByTagName("a");
for (var i = 0; i < all_a.length; i++) {
if (all_a[i].innerHTML == target) {
location.href = all_a[i].href;
return;
}
}
}
function go_to_first() {
if (location.href.indexOf("Boardname") > -1) {
all_a = document.getElementsByTagName("a");
for (var i = 0; i < all_a.length; i++) {
if (!isNaN(all_a[i].innerHTML)) {
location.href = all_a[i].href;
return;
}
}
}
}
function set_num(code) {
if (code >= 48 && code <= 57) {
document.getElementById("gm_buf").innerHTML += String.fromCharCode(code);
} else if (code >= 96 && code <= 105) {
document.getElementById("gm_buf").innerHTML += String.fromCharCode(code - 48);
}
}
document.addEventListener('keyup', function (evt) {
if (evt.keyCode == 78) { // N, n
go_to("다 음");
} else if (evt.keyCode == 80) { // P
go_to("이 전");
} else if (evt.keyCode == 76) { // L
go_to("글 목록");
} else if (evt.keyCode == 65 ) { // A
location.href = "http://kidsb.net/cgi-bin/Boardlist?Boardname=anonymous&Position=Last";
} else if (evt.keyCode == 66) { // B
location.href = "http://kidsb.net/cgi-bin/Boardlist?Boardname=AnonymousSerious&Position=Last";
} else if (evt.keyCode == 67) { // C
location.href = "http://kidsb.net/cgi-bin/Boardlist?Boardname=ComputerGamenia&Position=Last";
} else if (evt.keyCode == 69) { // E
go_to("맨 끝");
} else if (evt.keyCode == 13) { // enter
if (isNaN(document.getElementById("gm_buf").innerHTML)) {
go_to_first();
} else {
go_to(document.getElementById("gm_buf").innerHTML);
document.getElementById("gm_buf").innerHTML = "";
}
} else {
set_num(evt.keyCode);
}
}, true);
if (location.href.indexOf("Boardname") > -1) {
var gm_buf = document.createElement("div");
gm_buf.style.width = "100px";
gm_buf.style.height = "20px";
gm_buf.style.backgroundColor = "#000";
gm_buf.style.color = "#fff";
gm_buf.id = "gm_buf";
document.body.appendChild(gm_buf);
}
// @name kids key
// @namespace kids
// @description kids key
// @include http://kidsb.net/cgi-bin/Boardlist?*
// ==/UserScript==
/**
*
* N: Next
* P: Prev
* L: List
* A: anony
* B: big anony
* C: computer game
*/
function go_to(target) {
all_a = document.getElementsByTagName("a");
for (var i = 0; i < all_a.length; i++) {
if (all_a[i].innerHTML == target) {
location.href = all_a[i].href;
return;
}
}
}
function go_to_first() {
if (location.href.indexOf("Boardname") > -1) {
all_a = document.getElementsByTagName("a");
for (var i = 0; i < all_a.length; i++) {
if (!isNaN(all_a[i].innerHTML)) {
location.href = all_a[i].href;
return;
}
}
}
}
function set_num(code) {
if (code >= 48 && code <= 57) {
document.getElementById("gm_buf").innerHTML += String.fromCharCode(code);
} else if (code >= 96 && code <= 105) {
document.getElementById("gm_buf").innerHTML += String.fromCharCode(code - 48);
}
}
document.addEventListener('keyup', function (evt) {
if (evt.keyCode == 78) { // N, n
go_to("다 음");
} else if (evt.keyCode == 80) { // P
go_to("이 전");
} else if (evt.keyCode == 76) { // L
go_to("글 목록");
} else if (evt.keyCode == 65 ) { // A
location.href = "http://kidsb.net/cgi-bin/Boardlist?Boardname=anonymous&Position=Last";
} else if (evt.keyCode == 66) { // B
location.href = "http://kidsb.net/cgi-bin/Boardlist?Boardname=AnonymousSerious&Position=Last";
} else if (evt.keyCode == 67) { // C
location.href = "http://kidsb.net/cgi-bin/Boardlist?Boardname=ComputerGamenia&Position=Last";
} else if (evt.keyCode == 69) { // E
go_to("맨 끝");
} else if (evt.keyCode == 13) { // enter
if (isNaN(document.getElementById("gm_buf").innerHTML)) {
go_to_first();
} else {
go_to(document.getElementById("gm_buf").innerHTML);
document.getElementById("gm_buf").innerHTML = "";
}
} else {
set_num(evt.keyCode);
}
}, true);
if (location.href.indexOf("Boardname") > -1) {
var gm_buf = document.createElement("div");
gm_buf.style.width = "100px";
gm_buf.style.height = "20px";
gm_buf.style.backgroundColor = "#000";
gm_buf.style.color = "#fff";
gm_buf.id = "gm_buf";
document.body.appendChild(gm_buf);
}

