Created
February 13, 2014 02:00
-
-
Save gozen-bro3/8968376 to your computer and use it in GitHub Desktop.
ブラウザ三国志 ブショーダス破棄旧仕様化
This file contains 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 bro3_busyodas_oldredraw | |
// @namespace http://homepage3.nifty.com/Craford/ | |
// @description ブラウザ三国志 ブショーダス破棄旧仕様化 | |
// @include http://*.3gokushi.jp/busyodas/busyodas_result.php* | |
// @version 0.02 | |
// ==/UserScript== | |
// 2011.12.04 create Craford ブショーダス引き直しの仕様を元に戻す(・∀・) | |
// 2012.08.07 create Craford 仕様変更対応 | |
//グローバル変数 | |
var VERSION = "0.02"; //バージョン情報 | |
var d = document; | |
var $v = function(key) { return d.evaluate(key, document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); }; | |
// メイン | |
(function(){ | |
// 拠点画面なら実行 | |
if (location.pathname == "/busyodas/busyodas_result.php") { | |
var button1 = $v('//a[@class="thickbox ie6pngfix"]'); | |
var button2 = $v('//div[contains(@id,"card_draw_again_check")]//a'); | |
var clickScript = button2.snapshotItem(0).getAttribute("href").replace("javascript:",""); | |
var text = "if( confirm(\"このカードを破棄してもう一度引いてよろしいですか?\\n\\n※破棄すると、BP30を獲得します。\\n※同じカードを重複して引く場合もあります。\") ){ "+ clickScript + "; return true; } return false"; | |
button1.snapshotItem(0).removeAttribute("class",""); | |
button1.snapshotItem(0).removeAttribute("href",""); | |
button1.snapshotItem(0).setAttribute("onClick",text); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment