Last active
August 29, 2015 14:18
-
-
Save puyo-sh/6e6efb3f5b6a50c2d4ea 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 3gokushi-Test | |
// @namespace https://github.com/puyo-sh/bro3 | |
// @description ブラウザ三国志 テスト | |
// @include http://m33.3gokushi.jp/map.php* | |
// @version 1.0 | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js | |
// ==/UserScript== | |
j$ = jQuery.noConflict(true); | |
(function ($){ | |
$.ajax({ | |
url: 'http://m33.3gokushi.jp/land.php?x=600&y=600', | |
type: 'GET', | |
success: function(data) { | |
// 基本情報 | |
var basepoint = $(data).find("#basepoint"); | |
var basepoint_name = basepoint.find(".basename"); | |
var basepoint_xy = basepoint.find(".xy"); | |
var basepoint_status = basepoint.find(".status"); | |
// 資源タイル情報 | |
var production2 = $(data).find("#production2"); | |
var production2_inner = $(data).find(".floatInner"); | |
// 戦力情報 | |
var soldir_unit = $(data).find("#soldir_unit"); | |
var soldir_unit_inner = $(data).find(".floatInner"); | |
console.log(basepoint_name.text()); | |
console.log(basepoint_xy.text()); | |
} | |
}); | |
function landInfo2Data(landName,playerName,people,xy,allianceName,potential,distance,resourceA,resourceB,resourceC,resourceD,NPCflag){ | |
var key = location.hostname + xy; // key設定 | |
var xy = xy.replace(/^\((-?[0-9]+\,-?[0-9]+)\)$/, "$1"); // xy座標 | |
} | |
})(j$); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment