Page 1 of 1

Game Jump v0.2

PostPosted: Sat Jan 23, 2010 10:48 am
by karelpietertje
Hey Conquer Club!

I wrote a script (with help, thanks here chipv and Foxglove ;)!) called Game Jump.
It will add a text field to the Game Menu.
Insert a game number here, and it will take you to that game immediately!
I added a picture that shows you how it looks.

If you want to download it, CLICK HERE!

Enjoy! KP
_______________________________


show: to do list

show: version history

Re: Game Jump

PostPosted: Sat Jan 23, 2010 11:04 am
by ManBungalow
Uhh..am I missing something ?

I put a game number in and pressed the button. Nothing happened.

Re: Game Jump

PostPosted: Sat Jan 23, 2010 11:05 am
by karelpietertje
lol, thanks for trying.
fixing it :)

Re: Game Jump -not working yet :(-

PostPosted: Sat Jan 23, 2010 11:11 am
by skeletonboy
And is there a way of deleting the Insert Game # text when you click in the text box so you dont have to delete it manually?

Re: Game Jump v0.1

PostPosted: Sat Jan 23, 2010 12:14 pm
by karelpietertje
Okay everybody, it works!
I call it version 0.1! (click!)

I'll now look into skeletonboy's request, because I already wanted to do this myself :)
after all, this script was made to get to the game as quick and easy as possible :)

Cheers, enjoy! KP

Re: Game Jump v0.1

PostPosted: Sat Jan 23, 2010 12:20 pm
by Foxglove
Very nice. :D

Re: Game Jump v0.1

PostPosted: Sat Jan 23, 2010 5:11 pm
by loes
I love it! =D>

Re: Game Jump v0.1

PostPosted: Sat Jan 23, 2010 7:13 pm
by Dako
Handy, might use it (or merge with BOB? :D).

Good job there.

Re: Game Jump v0.1

PostPosted: Sun Jan 24, 2010 12:27 am
by Foxglove
Chip, me, you..... maybe we should rename our clan to Coders of the Round Table. :)

Game Jump v0.2

PostPosted: Sun Jan 24, 2010 2:17 am
by karelpietertje
Okay! next version has been uploaded, v0.2! (click!)
I got rid of the Go!-button, and instead made it so that you can press enter to go to the game.
Also the "Insert Game #" is deleted automatically now when you click the textbox!

Here is how it looks now :)!

Image

Cheers, KP!

Re: Game Jump v0.2

PostPosted: Sun Feb 13, 2011 4:13 am
by scottp
i really like this... but i wonder...

would it be possible for me to double click on a game number, right click, and have one of the options in the "right button menu" be "jump to game xxxxxxxx" where xxxxxxxx is the highlighted number?

this would save scrolling up to the box on games menu, pasting the number and hitting "enter".

just curious, since i'm extremely lazy...

BTW!!! - thank you for this script, it is already very good and useful as it is!

Re: Game Jump v0.2

PostPosted: Wed Jul 20, 2011 8:30 pm
by initus
Would it be possible to decrease the input box so it fits within the menu table?

Re: Game Jump v0.2

PostPosted: Mon Oct 31, 2011 9:45 pm
by scottp
this has been a very useful script, but it won't accept the new 8-digit game numbers.

Re: Game Jump v0.2

PostPosted: Tue Nov 01, 2011 2:52 am
by Masli
karelpietertje has not been active with the script.
I found a small thing that will help you till he decides to update it :
http://userscripts.org/scripts/show/116874

Re: Game Jump v0.2

PostPosted: Thu Nov 03, 2011 9:22 pm
by scottp
wonder of wonders, I managed to fix it myself. just changed a "maxlength=7" to "maxlength=8" or something like that, and it worked!

here's the text of the edited script, don't know how to host it or make it "installable" but if you edit the user script to this, it will work next time you start firefox... (do not include the ============================='s )

====================================================================

// ==UserScript==
// @name Game Jump
// @namespace
// @description Insert a game number and this script takes you there!
// @include http://www.conquerclub.com/*
// @include https://www.conquerclub.com/*
// ==/UserScript==


var li = document.createElement('li');
li.innerHTML = "<span style=\"\" class=\"divider\"><input maxlength=\"8\" style=\"font-size:1em;width:145px;padding:0em;text-indent:0.1em\" value=\"Insert Game #\" onfocus=\"if (this.value == 'Insert Game #') this.value = '';\"id=\"gamenumber\" type=\"text\" /></span>";
var ul = document.getElementById("leftColumn").getElementsByTagName("ul");
ul[0].appendChild(li);

document.getElementById('gamenumber').addEventListener('keypress', function(event) {
if(event.keyCode == 13) {window.location.href = window.location.protocol + "//www.conquerclub.com/game.php?game=" + document.getElementById("gamenumber").value}
}, false);

document.getElementById('gamenumber').addEventListener('keypress', function(event) {
event.stopPropagation();
}, false);

===============================================================

Re: Game Jump v0.2

PostPosted: Fri Nov 04, 2011 3:03 am
by Masli
and what do you think I changed :roll: :roll:

Re: Game Jump v0.2

PostPosted: Fri Nov 04, 2011 7:46 am
by ender516
Now, don't get upset. Fixing things on your own is one way to become a script developer, and we could use more of them.

I saw your post and thought, "Oh, he has found a similar script." I didn't realize you had copied and fixed the original, but since I don't use this script, I didn't investigate yours at all. I did, however, look at the existing script and come to the conclusion that it was a one-character fix. I was just waiting a bit to see if karl would show.

Re: Game Jump v0.2

PostPosted: Fri Nov 11, 2011 11:59 pm
by Calidrmr
Masli wrote:karelpietertje has not been active with the script.
I found a small thing that will help you till he decides to update it :
http://userscripts.org/scripts/show/116874


replaced the old link on the OP with this one, to make it easier to find the newest version. Thanks Masli!