京ぽん等のウィルコムの端末を使って2ちゃんねるを見るときに便利なのが公式p2なんですが、クッキーの挙動がおかしく自動でログインができないことがよくあります。そこで、えせ一発ログインを作ってみました。
下の赤字の部分を消してログインIDとパスワードを入れhtmlファイルとして保存してください。例えばp2.htmlとしてください。そのファイルをデータフォルダに保存し、ブックマークレットで呼び出すと便利です。ブックマークレットは次のように書いてください。javascriptをオンにしていると自動的にログインします。
WX310K
javascript:location.href='file://localhost/D:/data/p2.html';
WX300K,AH-K3001V
javascript:location.href='file://localhost/C:/data/p2.html';
WX310SA
データフォルダからHTMLファイルを開き、ブックマーク登録(実機がないため不確実)
ただ、内部ファイルにパスワードを保存することになるため、盗難等でパスワードが他人に見られる可能性があるので注意してください。
<html lang="ja">
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=Shift_JIS">
<meta name="ROBOTS" content="NOINDEX,
NOFOLLOW">
<meta http-equiv="Content-Style-Type"
content="text/css">
<meta
http-equiv="Content-Script-Type"
content="text/javascript">
<title>p2</title></head><body
onLoad="document.login.submit()">
<h3><a
href="http://p2.2ch.net/">p2.2ch.net</a></h3>
<form name="login" method="POST" action="http://p2.2ch.net/p2/index.php" target="_self"
utn>
糟糟糟: <input type="text"
name="form_login_id" value="ここにログインIDを入れてください" istyle="3"
size="32"><br>
糟糟糟糟糟糟糟:
<input type="password" name="form_login_pass" value="ここにパスワードを入れてください"
istyle="3"><br>
<input
type="hidden" name="ctl_regist_cookie" value="1">
<input type="checkbox" id="regist_cookie"
name="regist_cookie" value="1" checked><label
for="regist_cookie">cookieに保存する(推奨)</label><br>
<br>
<input type="submit"
name="submit_member" value="ユーザログイン">
</form>
</body></html>


