Game Jump v0.2

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Post Reply
User avatar
karelpietertje
Posts: 801
Joined: Mon Sep 03, 2007 2:43 pm
Gender: Male
Contact:

Game Jump v0.2

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


[spoiler=to do list]-(add possibility of inserting player name?)
-if game number doesn't exist, return message instead of taking you to a blank page[/spoiler]
[spoiler=version history]sunday january 24th, version 0.2
-fixed Forum/My games page difference
-made initial value for textbox disappear onclick
-deleted 'Go!'-button
-made it possible to hit enter to replace 'Go!'-button
(http://i661.photobucket.com/albums/uu331/karelpietertje/GameJumpv02.jpg)
saturday january 23rd, version 0.1
-made it clickable maps-compatible
-pimped it with EventListeners 8-)
(http://i661.photobucket.com/albums/uu331/karelpietertje/GameJump.jpg)[/spoiler]
Last edited by Calidrmr on Fri Nov 11, 2011 11:57 pm, edited 8 times in total.
Reason: added new location of script
Image
ManBungalow
Posts: 3431
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere

Re: Game Jump

Post by ManBungalow »

Uhh..am I missing something ?

I put a game number in and pressed the button. Nothing happened.
Image
User avatar
karelpietertje
Posts: 801
Joined: Mon Sep 03, 2007 2:43 pm
Gender: Male
Contact:

Re: Game Jump

Post by karelpietertje »

lol, thanks for trying.
fixing it :)
Image
User avatar
skeletonboy
Posts: 364
Joined: Wed Oct 24, 2007 9:17 am
Gender: Male
Location: With Jesus

Re: Game Jump -not working yet :(-

Post 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?
User avatar
karelpietertje
Posts: 801
Joined: Mon Sep 03, 2007 2:43 pm
Gender: Male
Contact:

Re: Game Jump v0.1

Post 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
Image
Foxglove
Posts: 1308
Joined: Sun Dec 16, 2007 1:05 pm

Re: Game Jump v0.1

Post by Foxglove »

Very nice. :D
loes
Posts: 130
Joined: Sat Oct 28, 2006 5:26 pm
Gender: Female

Re: Game Jump v0.1

Post by loes »

I love it! =D>
User avatar
Dako
Posts: 3987
Joined: Sun Aug 26, 2007 10:07 am
Gender: Male
Location: St. Petersburg, Russia
Contact:

Re: Game Jump v0.1

Post by Dako »

Handy, might use it (or merge with BOB? :D).

Good job there.
Image
Foxglove
Posts: 1308
Joined: Sun Dec 16, 2007 1:05 pm

Re: Game Jump v0.1

Post by Foxglove »

Chip, me, you..... maybe we should rename our clan to Coders of the Round Table. :)
User avatar
karelpietertje
Posts: 801
Joined: Mon Sep 03, 2007 2:43 pm
Gender: Male
Contact:

Game Jump v0.2

Post 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!
Image
User avatar
scottp
Posts: 455
Joined: Tue May 13, 2008 3:05 pm
Location: Dead Zone, TX

Re: Game Jump v0.2

Post 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!
Image
Account sitters = MagnusGreeol, concrete, RKCVED
User avatar
initus
Posts: 96
Joined: Sat Jan 20, 2007 4:51 pm
Gender: Male
Location: Incognito

Re: Game Jump v0.2

Post by initus »

Would it be possible to decrease the input box so it fits within the menu table?
Image
High: [Score 2660] [Rank 182] |
User avatar
scottp
Posts: 455
Joined: Tue May 13, 2008 3:05 pm
Location: Dead Zone, TX

Re: Game Jump v0.2

Post by scottp »

this has been a very useful script, but it won't accept the new 8-digit game numbers.
Image
Account sitters = MagnusGreeol, concrete, RKCVED
Masli
Posts: 3000
Joined: Mon May 07, 2007 5:43 am
Gender: Male

Re: Game Jump v0.2

Post 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
Image
User avatar
scottp
Posts: 455
Joined: Tue May 13, 2008 3:05 pm
Location: Dead Zone, TX

Re: Game Jump v0.2

Post 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);

===============================================================
Image
Account sitters = MagnusGreeol, concrete, RKCVED
Masli
Posts: 3000
Joined: Mon May 07, 2007 5:43 am
Gender: Male

Re: Game Jump v0.2

Post by Masli »

and what do you think I changed :roll: :roll:
Image
User avatar
ender516
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Gender: Male
Location: Waterloo, Ontario

Re: Game Jump v0.2

Post 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.
User avatar
Calidrmr
Posts: 641
Joined: Wed Sep 12, 2007 6:00 pm
Location: the corner bar...
Contact:

Re: Game Jump v0.2

Post 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!
Image
<Juan_Bottom>You're like the Barry Bonds of drinking. You don't need the practice you just do it because you like it.
Post Reply

Return to “Tool Archives”