The source code of the page displays this: 
var game_data = {"player":{"id":"2773294","name":"Rei 
Chinito","ally":"0","sitter":"0","sleep_start":"0","sitter_type":"normal","sleep_end":"0","sleep_last":"0","interstitial":"0","email_valid":"1","villages":"1","incomings":"0","supports":0,"knight_location":null,"knight_unit":null,"rank":865,"points":"26","date_started":"1443218527","is_guest":"0","birthdate":"0000-00-00","quest_progress":"0","premium":false,"account_manager":false,"farm_manager":false,"points_formatted":"26","rank_formatted":"865","pp":"6","new_ally_application":0,"new_ally_invite":"0","new_buddy_request":"0","new_forum_post":0,"new_igm":"0","new_items":"2","new_report":"0","fire_pixel":"0","new_quest":"0"},"village":{"id":11391,"name":"Aldeia
 
de Rei 
Chinito","wood_prod":0.006944444444,"stone_prod":0.006944444444,"iron_prod":0.006944444444,"storage_max":1000,"pop_max":240,"wood_float":500.1825096872,"stone_float":500.1825096872,"iron_float":400.1825096872,"wood":500,"stone":500,"iron":400,"pop":7,"x":580,"y":525,"trader_away":0,"bonus_id":null,"bonus":null,"buildings":{"village":"11391","main":"1","farm":"1","storage":"1","place":"1","barracks":"0","church":"0","church_f":"0","smith":"0","wood":"0","stone":"0","iron":"0","market":"0","stable":"0","wall":"0","garage":"0","hide":"1","snob":"0","statue":"0","watchtower":"0"},"player_id":"2773294","res":[500,0.006944444444,500,0.006944444444,400,0.006944444444,1000,7,240],"coord":"580|525","is_farm_upgradable":true},"nav":{"parent":1},"link_base":"\/game.php?village=11391&screen=","link_base_pure":"\/game.php?village=11391&screen=","csrf":"d5934525","world":"ptc1","market":"pt","RTL":false,"version":"27226
 
8.37","majorVersion":"8.37","screen":"overview","mode":null,"device":"desktop","pregame":false,"time_generated":1443218553261};

How could i check if the incomings value is > 0?
Sorry if it's a stupid question.

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to