Bug for not english server
|
|
Hi, it's nice idea but fully failed for me :o( I'm french, and I believe code bellow couldn't work for me because "title" use "Niveau" word for levels ^^ wallLevel = parseInt(wall["title"].replace(/.*evel (\d+).*/, "$1"), 10); Use this tip to fetch integer number into alphanumeric string.
var temp = ""+str; temp = temp.replace(/[^-0-9]+/g, ""); temp = parseInt(temp); NB: support negative numbers. I don't know which anothers bugs disturb this script for me. Good luck... |
|
|
Thanks for the feedback.
Update:
var key = "<div class=\"unitcount\"><span class=\"textLabel\">Available: </span>"; var start = unitHTML.indexOf(key); |
|
|
v0.0.3 should fix the non-English woes.
|
|
|
It's fine, so cute ^^ I submit to add your toolbox into cityMilitary-army/fleet, barracks, and shipyard views but lonely if you cached data because it's forbidden to make lot of HTTP requests... |
|
|
+1 i have suggested a feature in your other post |