Script: Game Link - Version 1.6.0

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

Moderators: Beta Team, Tech Team, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Fri Jun 03, 2011 11:53 am

In some cases, the game link information box pops up behind an image in a signature. These images seem to be ones which have "Click image to enlarge" but are still not clickable. (Maybe BigImg doesn't work in a signature.)
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Fri Sep 23, 2011 12:26 am

This script is not producing anything useful right now. Is that due to the downtime banner, or the round limit change, or what?

EDIT:
This is what happens when I post when I'm tired. I thought I remembered this problem, and if I had had the sense to scroll back about three posts, I would have had my answer. Anyway, the banner is gone and so is the problem (at least, for now).
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby sherkaner on Wed Dec 14, 2011 3:50 pm

With Foxglove's permission, I've put a version of this on github. Link to that version:

https://github.com/sherkaner/addons-for ... nk.user.js

I've added some changes:
1.) Uses the API to request the game/player information.
2.) Starts retrieving information only when you hover the first game-link.
3.) If the place is reserved, it will display '(reserved)' behind the user for who it is reserved.

This means that a banner won't impact the script any more (since banners aren't part of the API result), page loading times improved if there are a lot of games on a page, and if you don't hover any no work is done to retrieve any data.

Possible bugs:
API doesn't fetch over 100 games or 100 players at once, and I did not prepare for that yet. So on pages with massive amounts of games, it won't fetch everything. For players it might not retrieve the rank of players properly if there are more than 100 players in the games on a page.
Also, in 1 instance I've seen that the API doesn't retrieve a particular player (Noël Bangma in this case), though if I limit the number of players that player is retrieved. Not sure why that happens though, could also be a bug in the API.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Wed Dec 14, 2011 9:00 pm

It would be good if this worked on pages like "http://www.conquerclub.com/forum/posting.php?*" so you could check game links in the preview pane. By the way, does anyone besides me think that a popup for [player] links might be a nice addition to this script? It could display a Readers' Digest condensed version of the player's profile: score, rank, win/loss, attendance, rating, ... (whatever is available through the API). I would be interested in what parts others would like to see there.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby Dako on Mon Dec 19, 2011 9:53 am

Why don't you make it into single requests on hover? Because it takes a long time to fetch game links anyway and most of the time I need 2-3 games out of 10 only.

As for [player] suggestion - yeah, that will be great as well.
Image
User avatar
Brigadier Dako
 
Posts: 3950
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia
Medals: 117
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 (14) General Achievement (24)
Clan Achievement (21) General Contribution (20)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby sherkaner on Mon Dec 19, 2011 10:04 am

Dako wrote:Why don't you make it into single requests on hover? Because it takes a long time to fetch game links anyway and most of the time I need 2-3 games out of 10 only.

As for [player] suggestion - yeah, that will be great as well.


Because I tend to use it in tournament or clanwar forum pages, where I'm interested in most of the games.
And I'd have to check, but I think it takes around 0.3 second to fetch 40 games now, that's quite good actually (it just doesn't annoy me). So I didn't need to make it faster, it looks like adding one more game isn't that expensive for the server, and I'm not that sure about firing multiple requests.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Thu Jan 05, 2012 11:17 pm

Maybe the question is whether there is an advantage to delaying the API request until the first hover. If all the games can be fetched at once with only a minor delay, it might be smoother to do it when the page loads. Most forum users are accustomed to a bit of a delay while loading a page, what with signatures and images and such being loaded. A small extra delay at that point might not be as annoying as the one now at first hover.

The other thing I would like to suggest is extending the @include directives to include https://www... .
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby sherkaner on Fri Jan 06, 2012 7:20 am

ender516 wrote:Maybe the question is whether there is an advantage to delaying the API request until the first hover. If all the games can be fetched at once with only a minor delay, it might be smoother to do it when the page loads. Most forum users are accustomed to a bit of a delay while loading a page, what with signatures and images and such being loaded. A small extra delay at that point might not be as annoying as the one now at first hover.

The other thing I would like to suggest is extending the @include directives to include https://www... .


Actually, my main reason for updating it is introducing that lazy loading, I used to disable the script when going to pages with high amounts of games (clan league if I remember correctly), because that ment the page was a lot slower (10 seconds or so, api should have made it faster). And disabling/enabling is annoying. I could maybe make it an option though.

The https thing is something I can do though (or even you, since you can edit it on github :) ).
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Fri Jan 06, 2012 3:24 pm

I guess the ultimate option technique would be an adjustable threshold: if there are less than N links on the page, then load immediately, else wait for first hover.

I will take a crack at github very soon. I just want to be sure that I do no damage.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby MrGlassB on Tue Jan 10, 2012 11:49 am

ender516 wrote:By the way, does anyone besides me think that a popup for [player] links might be a nice addition to this script?

I believe I already mentioned that earlier in the thread. I would love to see a popup for player links.

MGB
User avatar
Lieutenant MrGlassB
 
Posts: 1580
Joined: Sat Dec 12, 2009 1:26 am
Location: Chicago, IL
Medals: 48
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Teammate Achievement (1)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (2) General Achievement (3)
Clan Achievement (1) Tournament Contribution (19) General Contribution (1)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Tue Jan 10, 2012 1:13 pm

MrGlassB wrote:
ender516 wrote:By the way, does anyone besides me think that a popup for player links might be a nice addition to this script?

I believe I already mentioned that earlier in the thread. I would love to see a popup for player links.

MGB


I am working on a popup for player links. Right now it is in a separate script for testing purposes, and I am about half done: I have code that will pop up over links that reference users by numerical ID, like those that appear in the header of a post or at the side with the avatars and stuff, but also need to handle links that reference users by name, which is what you get from ender516. Doing both in a simplistic way would be easy, but I am trying to come up with a way to avoid fetching the same user information both ways. Once I work that out, it may be easier to combine this fetching of user information with what Game Link is doing. If that doesn't work out, I will simply release my script separately.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby MrGlassB on Tue Jan 10, 2012 1:26 pm

Awesome. :)

MGB
User avatar
Lieutenant MrGlassB
 
Posts: 1580
Joined: Sat Dec 12, 2009 1:26 am
Location: Chicago, IL
Medals: 48
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Teammate Achievement (1)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (2) General Achievement (3)
Clan Achievement (1) Tournament Contribution (19) General Contribution (1)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby sherkaner on Thu Jan 12, 2012 1:55 pm

I added the player state to the information (the red/green/yellow thingy indicating whose turn it is) on the github-version, and now it should work for https and thread/post previews too.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Thu Jan 12, 2012 7:50 pm

I would have taken a shot at the github version as you suggested, but I am having trouble installing git for Cygwin on my PC. I suspect that my disk is too close to full.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby DiM on Thu Mar 15, 2012 4:33 pm

for some reason this does not work anymore

i keep getting this:
Image
“In the beginning God said, the four-dimensional divergence of an antisymmetric, second rank tensor equals zero, and there was light, and it was good. And on the seventh day he rested.”- Michio Kaku
Image
User avatar
Major DiM
 
Posts: 10554
Joined: Wed Feb 14, 2007 6:20 pm
Location: making maps for scooby snacks
Medals: 45
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (1) Terminator Achievement (2) Assassin Achievement (2)
Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (1)
Cross-Map Achievement (2) Ratings Achievement (3) Tournament Achievement (4) General Achievement (4) Map Contribution (10)
Tournament Contribution (4) General Contribution (3)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby Ffraid on Thu Mar 15, 2012 4:51 pm

DiM wrote:for some reason this does not work anymore

i keep getting this:
Image

I just tested it and it's working for me with that game number. :?:
User avatar
Captain Ffraid
 
Posts: 189
Joined: Thu Feb 07, 2008 11:57 am
Location: UTC - 6
Medals: 10
Standard Achievement (2) General Achievement (8)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby eddie2 on Thu Mar 15, 2012 6:52 pm

guys i was getting that then there is a update on page 7 i just clicked that then it works again this link

https://github.com/sherkaner/addons-for ... nk.user.js
Image
User avatar
Sergeant 1st Class eddie2
 
Posts: 3831
Joined: Sun Sep 20, 2009 10:56 am
Location: jersey channel islands
Medals: 73
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (3)
Assassin Achievement (2) Manual Troops Achievement (3) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (3)
Fog of War Achievement (4) Trench Warfare Achievement (3) Speed Achievement (4) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (4) General Achievement (5) Clan Achievement (10)
Tournament Contribution (5) General Contribution (3)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby safariguy5 on Fri Mar 16, 2012 2:46 pm

eddie2 wrote:guys i was getting that then there is a update on page 7 i just clicked that then it works again this link

https://github.com/sherkaner/addons-for ... nk.user.js

Cheers eddie, it's working for me again.
Image
User avatar
Captain safariguy5
 
Posts: 1894
Joined: Fri Mar 30, 2007 9:42 pm
Location: California
Medals: 69
Conquer Cup Silver Achievement (1) Standard Achievement (2) Doubles Achievement (2) Triples Achievement (3) Quadruples Achievement (3)
Terminator Achievement (2) Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (3) Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (4) Tournament Achievement (3) General Achievement (6) Clan Achievement (13) Tournament Contribution (6)
General Contribution (8)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby Calidrmr on Tue Mar 20, 2012 5:05 pm

safariguy5 wrote:
eddie2 wrote:guys i was getting that then there is a update on page 7 i just clicked that then it works again this link

https://github.com/sherkaner/addons-for ... nk.user.js

Cheers eddie, it's working for me again.

thanks, eddie! I have put this link in the OP :D
Image
<Juan_Bottom>You're like the Barry Bonds of drinking. You don't need the practice you just do it because you like it.
User avatar
Lieutenant Calidrmr
 
Posts: 640
Joined: Wed Sep 12, 2007 5:00 pm
Location: the corner bar...
Medals: 61
Standard Achievement (2) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Manual Troops Achievement (1) 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 (3)
Tournament Achievement (1) General Achievement (10) Clan Achievement (5) Training Achievement (1) General Contribution (15)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.3.1

Postby ender516 on Thu May 10, 2012 10:50 pm

I have updated this script, now at version 1.5.0, to show the Special Gameplay information (None, Fog, Trench, or Fog Trench) in place of the Fog of War information seen formerly.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.5.0

Postby iamkoolerthanu on Mon Dec 31, 2012 1:43 am

This usually works for me fine but for random game numbers recently, it tells me game information cant be found :(
User avatar
Corporal iamkoolerthanu
 
Posts: 4209
Joined: Sun Dec 31, 2006 6:56 pm
Location: looking at my highest score: 2715, #170
Medals: 100
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (3)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (4) Tournament Achievement (8) General Achievement (6) Clan Achievement (8) Tournament Contribution (31)
General Contribution (1)

Re: Greasemonkey Script: Conquer Club Game Link - v 1.5.0

Postby ender516 on Mon Dec 31, 2012 3:13 am

Specific examples would be most helpful.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: GM Script: Game Link - Version 1.6.0

Postby dgz345 on Fri Feb 07, 2014 12:52 pm

i have looks like i have had this update for sometime and forgot to post it
UPDATED!
User avatar
Lieutenant dgz345
Team Leader
Team Leader
 
Posts: 884
Joined: Thu Oct 07, 2010 10:53 am
Medals: 45
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (1)
Fog of War Achievement (3) Trench Warfare Achievement (2) Speed Achievement (1) Teammate Achievement (1) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (4) Tournament Achievement (2) General Achievement (4)
Clan Achievement (3) Challenge Achievement (2) General Contribution (1)

Previous

Return to Available Tools/Enhancements

Who is online

Users browsing this forum: Captn B, omniholy

Login