User scripts/programs to make your CC addiction easier
Moderator: Community Team
Forum rules
Please read the community guidelines before posting.
Please read the community guidelines before posting.
User scripts/programs to make your CC addiction easier
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
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.
Sticky Notes FireFox Extension - good for remembering strats
https://addons.mozilla.org/firefox/2011/
Internote 2.0.5, by Tim Horton, released on Jun 22, 2006
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.
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.
Put your game listing on Google Homepage
Put your game listing on Google Homepage
More info found here.
http://www.conquerclub.com/forum/viewtopic.php?t=4078
More info found here.
http://www.conquerclub.com/forum/viewtopic.php?t=4078
Auto Login Greasemonkey Script
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://*
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...
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
--Rob
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
--Rob
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.
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.
- Ishiro
- Posts: 324
- Joined: Mon Jul 17, 2006 5:53 pm
- Gender: Male
- Location: Under the Rainbow
- Contact:
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
http://www.probablynot.com/greasemonkey ... ds.user.js
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.
Highest Rank: #154 (Oct 05 '06)
Highest Score: 1725 (Jul 18 '08)
imhot4jesus wrote:Literacy never hurt anybody.
Highest Rank: #154 (Oct 05 '06)
Highest Score: 1725 (Jul 18 '08)
- reverend_kyle
- Posts: 9250
- Joined: Tue Mar 21, 2006 4:08 pm
- Location: 1000 post club
- Contact:
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!
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.
- Ishiro
- Posts: 324
- Joined: Mon Jul 17, 2006 5:53 pm
- Gender: Male
- Location: Under the Rainbow
- Contact:
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:
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.
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.
- resitnecdan
- Posts: 339
- Joined: Mon Mar 27, 2006 1:23 pm
- Location: Timisoara
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!
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.
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: I often quote myself. It adds spice to my conversation.
Yes, it takes the probability of turning in cards times the redemption value.
I hope that answers your question.
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.
firefox plugin
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!)
https://addons.mozilla.org/firefox/3638/
It shows your games status in the status bar, right click for options, enjoy!
Jon
(first post woo!)
- dividedbyzero
- Posts: 884
- Joined: Wed Jul 26, 2006 7:09 pm
Re: firefox plugin
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
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!
Any suggestions appreciated - I hadn't realised how vital it was to my enjoyment of the game!
Re: firefox plugin
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
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.
"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
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
