Page 1 of 2

User scripts/programs to make your CC addiction easier

PostPosted: Sun Jul 02, 2006 1:08 am
by Twill
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

Sticky Notes FireFox Extension - good for remembering strats

PostPosted: Wed Jul 26, 2006 2:15 am
by Tr0y
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:

Put your game listing on Google Homepage

PostPosted: Sat Jul 29, 2006 12:13 pm
by Tr0y
Put your game listing on Google Homepage

More info found here.
http://www.conquerclub.com/forum/viewtopic.php?t=4078

Auto Login Greasemonkey Script

PostPosted: Sat Aug 05, 2006 6:28 am
by Tr0y
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://*

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

PostPosted: Wed Aug 16, 2006 9:37 pm
by Rob Roy
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

PostPosted: Sat Aug 19, 2006 3:29 pm
by dussle
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.

PostPosted: Wed Sep 13, 2006 1:24 pm
by Ishiro
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

PostPosted: Wed Sep 13, 2006 5:57 pm
by kc-jake
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.

PostPosted: Wed Sep 13, 2006 7:04 pm
by reverend_kyle
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.

PostPosted: Fri Sep 15, 2006 11:38 pm
by horizon
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.

PostPosted: Sat Sep 16, 2006 4:29 am
by Ishiro
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. :)

PostPosted: Tue Sep 19, 2006 5:03 pm
by matteo11
How much of a pages DOM do you need to know to make non-trivial greasemonkey scripts?

PostPosted: Wed Sep 20, 2006 2:37 am
by resitnecdan
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.

PostPosted: Wed Sep 20, 2006 4:43 am
by Tr0y

PostPosted: Wed Sep 20, 2006 5:21 am
by eddymush
troy i just tried and it stillo does not show all the cool stuff like how many armies etc.....

PostPosted: Wed Sep 20, 2006 6:42 am
by Tr0y
you may need to reinstall it, or refresh when navigating to it.

PostPosted: Sun Oct 08, 2006 6:09 am
by Semirhage
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. :)

PostPosted: Tue Oct 10, 2006 1:56 pm
by Tr0y
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.

scripts

PostPosted: Thu Oct 19, 2006 4:21 am
by Jallen
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?

firefox plugin

PostPosted: Tue Oct 31, 2006 6:40 pm
by jonducrou
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!)

Re: firefox plugin

PostPosted: Tue Oct 31, 2006 8:10 pm
by dividedbyzero
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

PostPosted: Wed Nov 01, 2006 10:40 am
by latics
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!

Re: firefox plugin

PostPosted: Wed Nov 01, 2006 1:10 pm
by cramill
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?

Re: firefox plugin

PostPosted: Wed Nov 01, 2006 3:37 pm
by AndrewB
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.

PostPosted: Wed Nov 01, 2006 5:28 pm
by jonducrou
"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