GM Script: Watch this game - Version 1.4.4

The storehouse of handy and helpful plugins/addons and webpages.

Moderators: Global Moderators, Tech Team

Forum rules
Please read the Community Guidelines before posting.

GM Script: Watch this game - Version 1.4.4

Postby Dako on Wed Sep 30, 2009 6:53 pm

Need to know what's happening in other games you are not playing? Looking after tournament or friend's game? Too tired to bookmark dozens of games you like to watch?

Here it comes, script that allows you to mark certain games you like and see them in additional tab on the main screen!

Link - http://userscripts.org/scripts/show/58929
Script works in Firefox and Google Chrome.

User Guide
Watch This Game User Guide

TODO:
  • Check if it is possible to integrate with chat sniffer
  • Go to next "watched" game
  • Sort by game state option

Version 1.4.4
  • Fixed - "watch"/"unwatch" links stopped working after recent site update - thanks to dgz345 for the fix
  • Added - support of Polymorphic games
  • Added - support of Zombie spoils
  • Added - support of Parachute forts and No forts
  • Added - support of Trench Warfare
  • Added - support of Round Limits


show: Version History


Features (with screenshots):
  • New tab on 'My games' page - Image
  • Links to watch or unwatch certain games (from list of games and from game page itself)
  • Started and waiting for players games both can be marked for watching

Known problems (aka roadmap):
  1. Some CC related bugs that cannot be fixed because they depend on CC API

Fully compatible with BOB.

All started when lack rejected this idea as site improvement.
Made it to myself and I am no expert in JavaScript by all means so code might be poor in some places.

Cheers,
Dako.
Last edited by dgz345 on Tue Feb 18, 2014 6:06 am, edited 22 times in total.
Reason: Made it sticky
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Lindax on Wed Sep 30, 2009 8:41 pm

Oh man, this is great! Hail Dako!

Now I can find certain key tournament games with having to go through "find a game"!

You're my hero :shock:

Lx
Image
User avatar
Colonel Lindax
Clan Director
Clan Director
 
Posts: 8614
Joined: Sun Jan 20, 2008 12:58 pm
Medals: 124
Standard Achievement (4) Doubles Achievement (4) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (2) Fog of War Achievement (4)
Trench Warfare Achievement (1) Speed Achievement (4) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3)
Ratings Achievement (4) Tournament Achievement (29) General Achievement (8) Clan Achievement (5) Tournament Contribution (31)
General Contribution (8)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Foxglove on Thu Oct 01, 2009 2:26 pm

I like it! Very nice. :D
Brigadier Foxglove
Beta Team Member
Beta Team Member
 
Posts: 1196
Joined: Sun Dec 16, 2007 1:05 pm
Medals: 57
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1)
Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (1)
Tournament Achievement (7) General Achievement (6) Clan Achievement (11) Tournament Contribution (1) General Contribution (6)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Dako on Thu Oct 01, 2009 3:57 pm

Lindax wrote:Oh man, this is great! Hail Dako!

Now I can find certain key tournament games with having to go through "find a game"!

You're my hero :shock:

Lx


Great you liked it and that it is actually handy for tournaments and clan league games.

Foxglove wrote:I like it! Very nice. :D

Thanks :).
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby saraith on Fri Oct 02, 2009 4:31 am

Dako wrote:Features (with screenshots):
  • New tab on 'My games' page - Image
  • Links to watch or unwatch certain games (from list of games and from game page itself)
  • Started and waiting for players games both can be marked for watching


you couldn't show a game shot for a foggy game that I'm in? ;)

J/K Dako, nice script... I think I'll find this quite useful. :)
To achieve balance, first you must grow.
To grow, first you must learn.
To learn, first you must listen.
To listen, first you must shut the hell up.
-Buddhist saying
User avatar
Corporal 1st Class saraith
 
Posts: 476
Joined: Tue Aug 12, 2008 4:13 am
Location: Cow-Town
Medals: 43
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2)
Tournament Achievement (3) General Achievement (2) Clan Achievement (9) Map Contribution (1)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Dako on Fri Oct 02, 2009 4:48 am

It's not foggy but that would be fun :D.
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby chipv on Sun Oct 11, 2009 6:40 am

Excellent script!

You can use the <time_remaining> tag to sort by remaining round time, btw.
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Foxglove on Sun Oct 11, 2009 10:40 am

So a nice extension idea, if you're interested, would be to allow people to add/name multiple tabs, or to categorize games within the watched tab. For example, I might want a list of games with partner x, and another list of games from tournament y.

Hmmm...actually, that's an entirely different script, but it would reuse a bit of code that you've already written. :) I've previously thought about writing something like that myself, but you've already done the tab/game whatnot work. :D
Brigadier Foxglove
Beta Team Member
Beta Team Member
 
Posts: 1196
Joined: Sun Dec 16, 2007 1:05 pm
Medals: 57
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1)
Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (1)
Tournament Achievement (7) General Achievement (6) Clan Achievement (11) Tournament Contribution (1) General Contribution (6)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Dako on Sun Oct 11, 2009 3:06 pm

Foxglove wrote:So a nice extension idea, if you're interested, would be to allow people to add/name multiple tabs, or to categorize games within the watched tab. For example, I might want a list of games with partner x, and another list of games from tournament y.

Hmmm...actually, that's an entirely different script, but it would reuse a bit of code that you've already written. :) I've previously thought about writing something like that myself, but you've already done the tab/game whatnot work. :D

Yeah, I'd like to add different tabs (or one dropdown tab) and make it much more powerful - but I will not do it unless I have proper API functions to construct game nodes. Making so many ajax requests is just horrible and will load the browser a lot.

chipv wrote:Excellent script!

You can use the <time_remaining> tag to sort by remaining round time, btw.


Thanks, but it is not easy cause I am working with them as innerHTML and it doesn't allow them to use as DOM objects after that (or I am not that good at js) and sort them as I need it.
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby chipv on Sun Oct 11, 2009 3:53 pm

Dako wrote:
chipv wrote:Excellent script!

You can use the <time_remaining> tag to sort by remaining round time, btw.


Thanks, but it is not easy cause I am working with them as innerHTML and it doesn't allow them to use as DOM objects after that (or I am not that good at js) and sort them as I need it.


It is many more times difficult using innerHTML if you don't need to like you said you remove the ability to use a DOM parser - so use an XML DOM parser instead!
User avatar
Colonel chipv
 
Posts: 2758
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Foxglove on Mon Oct 12, 2009 11:41 am

Dako wrote:
Foxglove wrote:So a nice extension idea, if you're interested, would be to allow people to add/name multiple tabs, or to categorize games within the watched tab. For example, I might want a list of games with partner x, and another list of games from tournament y.

Hmmm...actually, that's an entirely different script, but it would reuse a bit of code that you've already written. :) I've previously thought about writing something like that myself, but you've already done the tab/game whatnot work. :D

Yeah, I'd like to add different tabs (or one dropdown tab) and make it much more powerful - but I will not do it unless I have proper API functions to construct game nodes. Making so many ajax requests is just horrible and will load the browser a lot.


Yeah, I hear you! I am holding off on ideas until we get an API extension as well, in order to avoid crazy excessive ajax calls.
Brigadier Foxglove
Beta Team Member
Beta Team Member
 
Posts: 1196
Joined: Sun Dec 16, 2007 1:05 pm
Medals: 57
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1)
Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (1)
Tournament Achievement (7) General Achievement (6) Clan Achievement (11) Tournament Contribution (1) General Contribution (6)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby endar1077 on Fri Oct 16, 2009 1:09 pm

Wow, I'm loving it.

There are a couple of interface things that could be improved, though. My thoughts, in case you are interested:
1) There is no way to "unwatch" games from the "watched" tab. This is a pretty big inconvenience, because it seems that once the game is over, you actually have to copy the game number, go to game finder, search for the game, and THEN click unwatch. It's probably a pretty easy fix to add an "unwatch" button right there in that tab.
2) This is very similar, but there's no way to watch games when given a game number link (i.e. Game 12345677). In a lot of the clan challenges, where this is most useful, there will be a long list of such links. It seems that in order to watch the games, you have to copy each game number individually, go to game finder, search it, and then click watch.

Perhaps the easiest way to fix both of these problems would be to simply add "Watch" and "Unwatch" buttons to the game screens themselves, so you could simply follow the link and then click watch or unwatch. I don't know.

Great script, though. Thank you!
Highest score: Colonel, 2786, #124
Image
User avatar
Major endar1077
 
Posts: 302
Joined: Sat Feb 09, 2008 6:28 pm
Location: Berkeley, CA
Medals: 34
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (2) Fog of War Achievement (3) Speed Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (1) Tournament Achievement (8) Clan Achievement (5)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Dako on Fri Oct 16, 2009 3:26 pm

endar1077 wrote:Wow, I'm loving it.

There are a couple of interface things that could be improved, though. My thoughts, in case you are interested:
1) There is no way to "unwatch" games from the "watched" tab. This is a pretty big inconvenience, because it seems that once the game is over, you actually have to copy the game number, go to game finder, search for the game, and THEN click unwatch. It's probably a pretty easy fix to add an "unwatch" button right there in that tab.
2) This is very similar, but there's no way to watch games when given a game number link (i.e. Game 12345677). In a lot of the clan challenges, where this is most useful, there will be a long list of such links. It seems that in order to watch the games, you have to copy each game number individually, go to game finder, search it, and then click watch.

Perhaps the easiest way to fix both of these problems would be to simply add "Watch" and "Unwatch" buttons to the game screens themselves, so you could simply follow the link and then click watch or unwatch. I don't know.

Great script, though. Thank you!

Yes, I am interested in your thoughts.

1. Known issue (read the first post, yeah :) ), can't fix now. You can get inside the game and click unwatch there (it is available, near the list of players).
2. Same, you can enter the game and click watch/unwatch.

But thanks for your input, when CC API will be improved a bit (and I hope it will be fixed soon) all the small things will be fixed and I will start the 2.0 version (heh, sounds tempting even for me :D).
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby endar1077 on Sun Oct 18, 2009 1:05 pm

Oh wow, I'm so dumb. I searched through all the other posts to make sure nobody else had reported these problems, but I didn't read the freaking "Known Bugs" section in the head post.

:shock:

Yeah, sorry about that. But I'm glad to know about the link inside the game screen - I definitely hadn't seen that (again, the head post).

EDIT: Now I see why I didn't see it. It's in a different place on mine, because I use the large map. The other three (normal) links stack vertically above player names, and then "unwatch" appears at the very bottom of the player names.

SECOND EDIT: Or not - maybe it was just that game. Now it's right where it's supposed to be. Anyway, nevermind all my suggestions, lol. This unwatch button fixes them all. I apologize again for being that dumb guy who didn't read enough to know the answer to his question. ;-)
Highest score: Colonel, 2786, #124
Image
User avatar
Major endar1077
 
Posts: 302
Joined: Sat Feb 09, 2008 6:28 pm
Location: Berkeley, CA
Medals: 34
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (2) Fog of War Achievement (3) Speed Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (1) Tournament Achievement (8) Clan Achievement (5)

Re: New Greasemonkey Script: Conquer Club - Watch this game

Postby Dako on Sun Oct 18, 2009 3:17 pm

It's ok, no problem :).

I will look into the code in a few days to see why the link is jumping on a few maps. Also, I have a snippet from sherkaner that will add an unwatch link to 'watched' tab. If it will work, that is just great, but I haven't looked into code deep to see if it will work.

Also, I am still waiting for CC API improvement and will fix all the bugs once it is released.

Glad that you liked the script :).
Image
User avatar
Brigadier Dako
 
Posts: 3942
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 115
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Trench Warfare Achievement (1) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (13) General Achievement (24)
Clan Achievement (20) General Contribution (20)

Next

Return to Available Tools/Enhancements

Who is online

Users browsing this forum: agentcom, Kexor, macbone, mattastrophe and 2 guests

Login