Ready Turns GM Script
Posted: Sat May 08, 2010 4:25 am
Simple script implementing this suggestion
viewtopic.php?f=4&t=104987
Install script by clicking on this
http://userscripts.org/scripts/source/76266.user.js
Conquer Club, a free online multiplayer variation of a popular world domination board game.
https://rc.conquerclub.com/forum/
https://rc.conquerclub.com/forum/viewtopic.php?f=530&t=116934
onload: function(responseDetails) {
var parser = new DOMParser();
var dom = parser.parseFromString(responseDetails.responseText,"application/xml");
var items = dom.getElementsByTagName('item');
var ready = 0;
for(var y=0; y<items.length;y++) {
var title = items[y].getElementsByTagName('title')[0].firstChild.nodeValue;
if(title.match(/READY/)) ready++;
}
var mygames = leftdivs[lf].getElementsByTagName('li')[0].getElementsByTagName('a')[0];
var span = mygames.appendChild(document.createElement('span'));
span.className = "inbox";
if(ready > 1 || ready == 0) span.innerHTML = ' [ ' + ready + ' turns ]';
else span.innerHTML = ' [ ' + ready + ' turn ]';
mygames.appendChild(span);
}
ManBungalow wrote:It seems the counter doesn't account for speed games, which is a little drawback..
caymanmew wrote:says i have turns to play yet i dont
chipv wrote:caymanmew wrote:says i have turns to play yet i dont
Did you log in as someone else?
caymanmew wrote:chipv wrote:caymanmew wrote:says i have turns to play yet i dont
Did you log in as someone else?
no... but it fine now