WLD14 Script not working

DeletedUser

Guest
I'm trying to run a script (that works on WLD13) but I'm getting this error in WLD14. Any ideas why? Thx.

=========================
dalesmckay's Troop Summary: v7.7
=========================
Premium: yes
Church : yes
Statue : yes
Archer : no
Militia: yes
Sitter : no
=========================
Version: 19747 8.19
World : us14
Screen : overview_villages
Mode : units
URL : http://us14.tribalwars.us/game.php?village=1788&mode=units&screen=overview_villages
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
=========================
Error: Cannot read property 'document' of undefined
 

DeletedUser

Guest
I'm trying to run a script (that works on WLD13) but I'm getting this error in WLD14. Any ideas why? Thx.

=========================
dalesmckay's Troop Summary: v7.7
=========================
Premium: yes
Church : yes
Statue : yes
Archer : no
Militia: yes
Sitter : no
=========================
Version: 19747 8.19
World : us14
Screen : overview_villages
Mode : units
URL : http://us14.tribalwars.us/game.php?village=1788&mode=units&screen=overview_villages
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
=========================
Error: Cannot read property 'document' of undefined

It seems you are trying to run "troop counter" script. Try this version:

Code:
javascript:$.getScript('http://dl.dropbox.com/u/100563986/triburile/troup_counter.js');void(0);

It should work on all worlds.
 

DeletedUser

Guest
Thx mythra. It is a troop counter script. When I put in your code, I get this error:

=========================
dalesmckay's Troop Summary: v7.7
=========================
Premium: yes
Church : yes
Statue : yes
Archer : no
Militia: yes
Sitter : no
=========================
Version: 19747 8.19
World : us14
Screen : overview_villages
Mode : units
URL : http://us14.tribalwars.us/game.php?village=1788&mode=units&screen=overview_villages
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36
=========================
Error: Cannot read property 'document' of undefined
 

DeletedUser

Guest
"Error: Cannot read property 'document' of undefined" - the error you are getting is related to pop-ups. Try enabling pop-ups for WLD14 in your Chrome browser and after that the script will work fine. You should have an icon in the address bar. Click on that icon and select "Always show pop-ups from....".
 
Top