Conquer Club

User scripts/programs to make your CC addiction easier

Talk about all things related to Conquer Club

Moderator: Community Team

Forum rules
Please read the community guidelines before posting.

User scripts/programs to make your CC addiction easier

Postby Twill on Sun Jul 02, 2006 1:08 am

A couple of users have posted scripts which exist to make everyone's CC lives easier. I would like to thank them very much, we love your sexy coding skills guys!!!
This is my Homage to you.

The infamous "greasemonky" script (beta .5 codename "band-aid") by Tr0Y
http://www.conquerclub.com/forum/viewtopic.php?t=6672
(a must have)

The game listing sorter by Tr0Y
http://www.conquerclub.com/forum/viewtopic.php?t=2364

The "Notifier" by kevinc
http://www.conquerclub.com/forum/viewtopic.php?t=2017
(a very usefull tool to let you know exactly when you can feed your addiction)

Have a great day, may your conquering be conkie.
Twill
Last edited by Twill on Wed Sep 20, 2006 7:11 am, edited 1 time in total.
User avatar
Corporal 1st Class Twill
 
Posts: 3630
Joined: Fri Jan 20, 2006 10:54 pm

Sticky Notes FireFox Extension - good for remembering strats

Postby Tr0y on Wed Jul 26, 2006 2:15 am

https://addons.mozilla.org/firefox/2011/
Internote 2.0.5, by Tim Horton, released on Jun 22, 2006

Persistent sticky notes for Firefox. Internote allows you to create notes on a web page which will be there once you return. Notes are very customizable, and come with many small, useful features. A manager is available, in which you can see all of your saved notes, edit them, print them, and delete them.


I got it for web development, however I found it handy for remembering what I wanted to do next turn. I've had it for a while, and figured I'd share.

Maybe Lack can use it for a more in your face todo. :wink:
User avatar
Corporal Tr0y
 
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC

Put your game listing on Google Homepage

Postby Tr0y on Sat Jul 29, 2006 12:13 pm

Put your game listing on Google Homepage

More info found here.
http://www.conquerclub.com/forum/viewtopic.php?t=4078
User avatar
Corporal Tr0y
 
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC

Auto Login Greasemonkey Script

Postby Tr0y on Sat Aug 05, 2006 6:28 am

http://labs.beffa.org/greasemonkey/AutoLogin.user.js
found on http://labs.beffa.org/greasemonkey/

Description:
Auto-Login on forms where you have saved the password in firefox.

NOTE:
You may want to change the included pages to
http://*conquerclub.com*
instead of all http://* and https://*
User avatar
Corporal Tr0y
 
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC

So it doesn't get lost on page 8...

Postby Rob Roy on Wed Aug 16, 2006 9:37 pm

I took Tr0y's game sorter greasemonkey script and made some modifications to it.

This new script allows you to filter out game settings that you don't like right on the "Join Game" screen, so that you only see the game types that you like.

http://www.ualberta.ca/~andrewl/ccgamel ... er.user.js

Disclaimer: I've only tested this on Firefox 1.5 for Mac, so if you try it on something else and it doesn't work, let me know and I will do my best to fix it.

Disclaimer 2: This is my first ever attempt at a greasemonkey script. JS is not my language of choice, if anyone wants to take a stab at optimizing it (*cough*Tr0y*cough*), go for it :D

--Rob
User avatar
Corporal 1st Class Rob Roy
 
Posts: 3
Joined: Sun Jul 16, 2006 10:48 am
Location: Edmonton, Canada

Postby dussle on Sat Aug 19, 2006 3:29 pm

Here's something rather useful I found at the dead Lord of the Rings Risk website that has become Ham's playground and mine.

http://drpetrov.com/games/shuffler.zip
The above is a shuffler program that is in a zipped file. It'll be useful for tourney organizers, as long as everyone is numbered somehow, which would beeasy if you did it by signups. Just run the second file called shuffler, to do it put in the number of players and the output will be the order they're in.
User avatar
Sergeant dussle
 
Posts: 902
Joined: Fri Jun 09, 2006 4:00 pm
Location: Indiana, USA

Postby Ishiro on Wed Sep 13, 2006 1:24 pm

I was bored today and made a script to add confirmation dialogs to the End Attacks and End Fortification buttons.

http://www.probablynot.com/greasemonkey ... ds.user.js
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby kc-jake on Wed Sep 13, 2006 5:57 pm

Ishiro wrote:I was bored today and made a script to add confirmation dialogs to the End Attacks and End Fortification buttons.

http://www.probablynot.com/greasemonkey ... ds.user.js

My hero.
I was a major back when 1600 was major. Now that I'm back, I get to easily win a bunch of games to get my rank. Thank the 'tards here who suck at this game.
imhot4jesus wrote:Literacy never hurt anybody.

Highest Rank: #154 (Oct 05 '06)
Highest Score: 1725 (Jul 18 '08)
User avatar
Sergeant 1st Class kc-jake
 
Posts: 149
Joined: Mon Sep 04, 2006 4:29 pm

Postby reverend_kyle on Wed Sep 13, 2006 7:04 pm

kc-jake wrote:
Ishiro wrote:I was bored today and made a script to add confirmation dialogs to the End Attacks and End Fortification buttons.

http://www.probablynot.com/greasemonkey ... ds.user.js

My hero.


mine too.. now lack doesnt have to cave in and do it.
DANCING MUSTARD FOR POOP IN '08!
User avatar
Sergeant reverend_kyle
 
Posts: 9250
Joined: Tue Mar 21, 2006 4:08 pm
Location: 1000 post club

Postby horizon on Fri Sep 15, 2006 11:38 pm

Ishiro wrote:I was bored today and made a script to add confirmation dialogs to the End Attacks and End Fortification buttons.

http://www.probablynot.com/greasemonkey ... ds.user.js


Way cool!! Is a confirmation dialog possible for deployment? Just a few minutes ago I dumped 13 armies on the wrong country.
User avatar
Major horizon
 
Posts: 53
Joined: Tue Sep 05, 2006 7:47 pm
Location: Great State of Texas

Postby Ishiro on Sat Sep 16, 2006 4:29 am

Confirmation is possible for any button, just right click the link, choose "Save Link as..." save it on your computer, open it with notepad (or any text editor). The code for each button is exactly the same, so just make a copy of one and modify the name of the button it is looking for:

Code: Select all
      if (inputs[a].value == "Fortify")
      {
         inputs[a].setAttribute("onclick", "javascript:return confirm('Are you sure?');" );
      }


This would add confirmation to the Fortify... make one that looks for "Attack" to put a confirm on attack, "Deploy" (?) for deployment. Save it, then open the file with Firefox. Greasemonkey should ask if you want to install it.

Done.

Go crazy and put confirmations for any button you want... though I suggest not putting confirmation on the Login button. :)
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby matteo11 on Tue Sep 19, 2006 5:03 pm

How much of a pages DOM do you need to know to make non-trivial greasemonkey scripts?
Private 1st Class matteo11
 
Posts: 27
Joined: Fri Sep 01, 2006 7:16 pm

Postby resitnecdan on Wed Sep 20, 2006 2:37 am

What happened with all those things the greasemonkey offered? Most of them are gone after the update of the site. Like the statistics in-game and seeing who's turn it is out of game.
Proud member of The Imperial Dragoons

Highest place 30
Highest score: 2136
Most points in a game: 121
User avatar
Lieutenant resitnecdan
 
Posts: 339
Joined: Mon Mar 27, 2006 1:23 pm
Location: Timisoara

Postby Tr0y on Wed Sep 20, 2006 4:43 am

User avatar
Corporal Tr0y
 
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC

Postby eddymush on Wed Sep 20, 2006 5:21 am

troy i just tried and it stillo does not show all the cool stuff like how many armies etc.....
Image
User avatar
Corporal 1st Class eddymush
 
Posts: 127
Joined: Mon Apr 24, 2006 9:58 am
Location: columbus, ohio

Postby Tr0y on Wed Sep 20, 2006 6:42 am

you may need to reinstall it, or refresh when navigating to it.
User avatar
Corporal Tr0y
 
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC

Postby Semirhage on Sun Oct 08, 2006 6:09 am

Troy, let me just re-iterate how much I love your "current-game-status" greasemonkey script. I don't know what I would do without it anymore, since almost every move I make is influenced by the armies and power ratings it provides. Great job, man! :D

Just one thing though: how much does the power rating take the cards' status into account. I know it is affected when you have a complete set or two, but does it take into account partially completed card sets, or escalating or flat-rate card sets? I mean, a partially filled card set near the end of an escalating cards game should more greatly affect your power rating than a complete set at the beginning.
Sorry for mentioning something you've already thought of, if that is the case. :)
~ Semirhage

:shock::shock: I often quote myself. It adds spice to my conversation.
User avatar
Captain Semirhage
 
Posts: 20
Joined: Sun Jun 04, 2006 2:43 pm

Postby Tr0y on Tue Oct 10, 2006 1:56 pm

Yes, it takes the probability of turning in cards times the redemption value.

Code: Select all
   /*---- Returns probability of a tunin - http://www.kent.ac.uk/IMS/personal/odl/riskfaq.htm#3.5 ----*/
   var getTurnInP = function(num_cards){
      if( num_cards < 3 ) return 0;
      if( num_cards > 4 ) return 1;
      if( num_cards == 3 ) return 0.3341;
      return 0.778; // has 4 cards
   }


I hope that answers your question.
User avatar
Corporal Tr0y
 
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC

scripts

Postby Jallen on Thu Oct 19, 2006 4:21 am

just wondered do having scripts on these pages slow down how quick they load when you refresh or click buttons to go into other things?

anyone know?
User avatar
Private 1st Class Jallen
 
Posts: 11
Joined: Tue Sep 05, 2006 3:51 am
Location: Centre of the universe

firefox plugin

Postby jonducrou on Tue Oct 31, 2006 6:40 pm

I saw this forum thread and made a simple lightweight firefox 1.5-2.0 extension.

https://addons.mozilla.org/firefox/3638/

It shows your games status in the status bar, right click for options, enjoy!

Jon
(first post woo!)
User avatar
Private jonducrou
 
Posts: 66
Joined: Tue Oct 03, 2006 9:55 pm
Location: Seattle

Re: firefox plugin

Postby dividedbyzero on Tue Oct 31, 2006 8:10 pm

jonducrou wrote:I saw this forum thread and made a simple lightweight firefox 1.5-2.0 extension.

https://addons.mozilla.org/firefox/3638/

It shows your games status in the status bar, right click for options, enjoy!

Jon
(first post woo!)


Hey. That's pretty useful. Cool!

Works like a charm.

dbz
User avatar
Major dividedbyzero
 
Posts: 884
Joined: Wed Jul 26, 2006 7:09 pm

Postby latics on Wed Nov 01, 2006 10:40 am

My greasemonkey hasn't been working of late (to show number of armies / cards etc). I've updated it, and even reinstalled it. Any ideas? I'm on Firefox 2 and greasemonkey 0.6.6.20061017.0. In manage user scripts it seems to be enabled.

Any suggestions appreciated - I hadn't realised how vital it was to my enjoyment of the game!
Captain latics
 
Posts: 1
Joined: Tue Mar 21, 2006 7:31 am

Re: firefox plugin

Postby cramill on Wed Nov 01, 2006 1:10 pm

jonducrou wrote:I saw this forum thread and made a simple lightweight firefox 1.5-2.0 extension.

https://addons.mozilla.org/firefox/3638/

It shows your games status in the status bar, right click for options, enjoy!

Jon
(first post woo!)

Wow, that is pretty awesome. I just found out that you can double click on the icons and it takes you right to the game. Maybe you could explain all of its features. Some people may not know that they have to enter ther user id to make this work, and some people may not figure out that you can double click the icons to take you to the games.

Also, I have a question: what does the "Open in tab" option do?
User avatar
Corporal 1st Class cramill
 
Posts: 611
Joined: Sun Jun 18, 2006 8:13 pm
Location: Phoenix, AZ

Re: firefox plugin

Postby AndrewB on Wed Nov 01, 2006 3:37 pm

jonducrou wrote:I saw this forum thread and made a simple lightweight firefox 1.5-2.0 extension.

https://addons.mozilla.org/firefox/3638/

It shows your games status in the status bar, right click for options, enjoy!

Jon
(first post woo!)


Pretty awesome, how about to give more options for the refresh time? I want mine up to half a minute. 10 mins is too long.

Also could you include option to "check now"?

Could u possibly open-source it? so people can make changes to their exact needs?

Great work, Jon.
User avatar
Lieutenant AndrewB
 
Posts: 1814
Joined: Mon Jun 12, 2006 5:02 pm
Location: Edmonton, Canada, MST

Postby jonducrou on Wed Nov 01, 2006 5:28 pm

"open in tab" basically sets where the window should open when the user double clicks a status icon.

and refresh time - i didn't want the server getting bashed and my extension being blamed. A forced re-check occurs if you pick any of the times again (e.g. just select 10 mins again). If the server people are ok with a time of less i will add it in. Also, its really easy to hack/tweak the ext yourself once installed.


Jon
User avatar
Private jonducrou
 
Posts: 66
Joined: Tue Oct 03, 2006 9:55 pm
Location: Seattle

Next

Return to Conquer Club Discussion

Who is online

Users browsing this forum: No registered users