Direct Accept Mission

Lets you directly accept HP secret board missions

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Direct Accept Mission
// @namespace    http://www.hacker-project.com/
// @version      0.3
// @description  Lets you directly accept HP secret board missions
// @author       Kevin Mitnick
// @match        http://www.hacker-project.com/index.php?action=gate&a2=secret_board*
// @match        http://hacker-project.com/index.php?action=gate&a2=secret_board*
// @grant        none
// ==/UserScript==

function main() {
    var table = document.getElementsByTagName("table")[10];
    var trs = table.getElementsByTagName("tr");
    var missionsNumber = table.getElementsByTagName("tr").length-5;
    for (var i = 4; i < trs.length-1; i++) {
    	var tds = trs[i].getElementsByTagName("td");
        var td1 = tds[0];
        var p = document.createElement("p");
        p.innerHTML="|";
        p.style.display = "inline";
        td1.appendChild(p);
        var a = document.createElement("a");
        a.innerHTML="Accept";
        a.setAttribute("href", td1.getElementsByTagName("a")[0].getAttribute("href").substring(0, td1.getElementsByTagName("a")[0].getAttribute("href").indexOf("&a3=")+4)+"accept"+td1.getElementsByTagName("a")[0].getAttribute("href").substring(td1.getElementsByTagName("a")[0].getAttribute("href").indexOf("&a3=")+10));
        a.style.display = "inline";
        td1.appendChild(a);
    }
}
main();