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 avatar
Twill
Posts: 3630
Joined: Fri Jan 20, 2006 10:54 pm

User scripts/programs to make your CC addiction easier

Post 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
Last edited by Twill on Wed Sep 20, 2006 7:11 am, edited 1 time in total.
User avatar
Tr0y
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC
Contact:

Sticky Notes FireFox Extension - good for remembering strats

Post 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:
User avatar
Tr0y
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC
Contact:

Put your game listing on Google Homepage

Post by Tr0y »

Put your game listing on Google Homepage

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

Auto Login Greasemonkey Script

Post 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://*
User avatar
Rob Roy
Posts: 3
Joined: Sun Jul 16, 2006 10:48 am
Location: Edmonton, Canada

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

Post 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
User avatar
dussle
Posts: 902
Joined: Fri Jun 09, 2006 4:00 pm
Gender: Male
Location: Indiana, USA

Post 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.
User avatar
Ishiro
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Gender: Male
Location: Under the Rainbow
Contact:

Post 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
User avatar
kc-jake
Posts: 149
Joined: Mon Sep 04, 2006 4:29 pm

Post 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.
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
reverend_kyle
Posts: 9250
Joined: Tue Mar 21, 2006 4:08 pm
Location: 1000 post club
Contact:

Post 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.
DANCING MUSTARD FOR POOP IN '08!
User avatar
horizon
Posts: 53
Joined: Tue Sep 05, 2006 7:47 pm
Location: Great State of Texas

Post 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.
User avatar
Ishiro
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Gender: Male
Location: Under the Rainbow
Contact:

Post 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. :)
matteo11
Posts: 27
Joined: Fri Sep 01, 2006 7:16 pm

Post by matteo11 »

How much of a pages DOM do you need to know to make non-trivial greasemonkey scripts?
User avatar
resitnecdan
Posts: 339
Joined: Mon Mar 27, 2006 1:23 pm
Location: Timisoara

Post 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.
Proud member of The Imperial Dragoons

Highest place 30
Highest score: 2136
Most points in a game: 121
User avatar
Tr0y
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC
Contact:

Post by Tr0y »

User avatar
eddymush
Posts: 127
Joined: Mon Apr 24, 2006 9:58 am
Gender: Male
Location: columbus, ohio
Contact:

Post by eddymush »

troy i just tried and it stillo does not show all the cool stuff like how many armies etc.....
Image
User avatar
Tr0y
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC
Contact:

Post by Tr0y »

you may need to reinstall it, or refresh when navigating to it.
User avatar
Semirhage
Posts: 20
Joined: Sun Jun 04, 2006 2:43 pm

Post 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. :)
~ Semirhage

:shock::shock: I often quote myself. It adds spice to my conversation.
User avatar
Tr0y
Posts: 271
Joined: Mon Jan 23, 2006 1:26 pm
Location: Cary, NC
Contact:

Post 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.
User avatar
Jallen
Posts: 11
Joined: Tue Sep 05, 2006 3:51 am
Location: Centre of the universe

scripts

Post 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?
User avatar
jonducrou
Posts: 66
Joined: Tue Oct 03, 2006 9:55 pm
Location: Seattle

firefox plugin

Post 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!)
User avatar
dividedbyzero
Posts: 884
Joined: Wed Jul 26, 2006 7:09 pm

Re: firefox plugin

Post 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
latics
Posts: 1
Joined: Tue Mar 21, 2006 7:31 am

Post 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!
User avatar
cramill
Posts: 611
Joined: Sun Jun 18, 2006 8:13 pm
Gender: Male
Location: Phoenix, AZ
Contact:

Re: firefox plugin

Post 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?
User avatar
AndrewB
Posts: 1814
Joined: Mon Jun 12, 2006 5:02 pm
Location: Edmonton, Canada, MST

Re: firefox plugin

Post 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.
User avatar
jonducrou
Posts: 66
Joined: Tue Oct 03, 2006 9:55 pm
Location: Seattle

Post 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
Post Reply

Return to “Conquer Club Discussion”