Created
February 24, 2009 09:26
-
-
Save azu/69484 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name NicoNicoLoginSupporter | |
// @namespace http://mitc.xrea.jp/ | |
// @author miff | |
// @include http://www.nicovideo.jp/ | |
// @include http://www.nicovideo.jp/index.php | |
// @description ニコニコ動画へのログインを支援します. | |
// ==/UserScript== | |
//------------------------------------- | |
// 設定 | |
//------------------------------------- | |
(function(){ | |
// ニコニコ動画ログイン用メールアドレス | |
var myMailAddress = "あなたのメールアドレス"; | |
// ニコニコ動画ログイン用パスワード | |
var myPassword = "あなたのパスワード"; | |
// 自動ログインフラグ | |
var autoLoginFlag = true; | |
// 処理時にアラートを出すフラグ | |
var loginAlertFlag = false; | |
//------------------------------------- | |
// 処理 | |
//------------------------------------- | |
var mailBox = document.getElementById("bar_mail"); | |
var passBox = document.getElementById("bar_password"); | |
if ( mailBox && passBox ) | |
{ | |
mailBox.value = myMailAddress; | |
passBox.value = myPassword; | |
if (autoLoginFlag == true) document.getElementById("login_bar").submit(); | |
if (loginAlertFlag == true) alert("ログイン処理を実行しました"); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment