// ブラウザ三国志 自動出兵ツール // 出兵確認画面で、指定時間に「出兵」ボタンを自動クリックする。 // // 出兵時間を指定する枠を表示 [HH]時[MM]分 // 指定時間になったら出兵ボタンが押される(マウスでクリックしたのと同じ動作をする)。 // そのため、確認画面を開っぱなしにしておく。 // アクセス時間があきすぎるとセッションタイムアウトになってしまう可能性あり。 // 予約時間はサーバー時間ではなくマシン時間 // // ver0.2 2010-05-22 秒までの指定に対応 // ver0.1 2010-05-22 新規作成 // // Released under the GPL license // // -------------------------------------------------------------------- // // This is a Greasemonkey user script. // // To install, you need Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/748 // Then restart Firefox and revisit this script. // Under Tools, there will be a new menu item to "Install User Script". // Accept the default configuration and install. // // To uninstall, go to Tools/Manage User Scripts, // select "Hello World", and click Uninstall. // // -------------------------------------------------------------------- // ==UserScript== // @name 3gokushi autoTroop // @namespace http://mixi.jp/ // @description 出兵時間を予約 // @include http://*.3gokushi.jp/facility/* // ==/UserScript== window.executeTroop = function() { var btn = window.document.getElementById("btn_send"); btn.click(); } window.displayTroop = function() { var obj = window.document.getElementById("gray02Wrapper"); var html = ""; html += '【出兵予約】 '; html += ''; html += '時'; html += ''; html += '分'; // 秒の指定 html += ''; html += '秒'; html += 'に自動的に出兵ボタンを押します(最終チェック--時--分)'; obj.innerHTML += '