Conquer Club

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.

Game Jump v0.2

Postby karelpietertje on Sat Jan 23, 2010 10:48 am

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
Last edited by Calidrmr on Fri Nov 11, 2011 11:57 pm, edited 8 times in total.
Reason: added new location of script
Image
User avatar
Major karelpietertje
 
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm

Re: Game Jump

Postby ManBungalow on Sat Jan 23, 2010 11:04 am

Uhh..am I missing something ?

I put a game number in and pressed the button. Nothing happened.
Image
Colonel ManBungalow
 
Posts: 3431
Joined: Sun Jan 13, 2008 7:02 am
Location: On a giant rock orbiting a star somewhere

Re: Game Jump

Postby karelpietertje on Sat Jan 23, 2010 11:05 am

lol, thanks for trying.
fixing it :)
Image
User avatar
Major karelpietertje
 
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm

Re: Game Jump -not working yet :(-

Postby skeletonboy on Sat Jan 23, 2010 11:11 am

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
Sergeant skeletonboy
 
Posts: 364
Joined: Wed Oct 24, 2007 8:17 am
Location: With Jesus

Re: Game Jump v0.1

Postby karelpietertje on Sat Jan 23, 2010 12:14 pm

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
User avatar
Major karelpietertje
 
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm

Re: Game Jump v0.1

Postby Foxglove on Sat Jan 23, 2010 12:20 pm

Very nice. :D
Brigadier Foxglove
 
Posts: 1308
Joined: Sun Dec 16, 2007 1:05 pm

Re: Game Jump v0.1

Postby loes on Sat Jan 23, 2010 5:11 pm

I love it! =D>
Major loes
 
Posts: 130
Joined: Sat Oct 28, 2006 4:26 pm

Re: Game Jump v0.1

Postby Dako on Sat Jan 23, 2010 7:13 pm

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

Good job there.
Image
User avatar
Colonel Dako
 
Posts: 3987
Joined: Sun Aug 26, 2007 9:07 am
Location: St. Petersburg, Russia

Re: Game Jump v0.1

Postby Foxglove on Sun Jan 24, 2010 12:27 am

Chip, me, you..... maybe we should rename our clan to Coders of the Round Table. :)
Brigadier Foxglove
 
Posts: 1308
Joined: Sun Dec 16, 2007 1:05 pm

Game Jump v0.2

Postby karelpietertje on Sun Jan 24, 2010 2:17 am

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
Major karelpietertje
 
Posts: 801
Joined: Mon Sep 03, 2007 1:43 pm

Re: Game Jump v0.2

Postby scottp on Sun Feb 13, 2011 4:13 am

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
Major scottp
 
Posts: 455
Joined: Tue May 13, 2008 2:05 pm
Location: Dead Zone, TX

Re: Game Jump v0.2

Postby initus on Wed Jul 20, 2011 8:30 pm

Would it be possible to decrease the input box so it fits within the menu table?
Image
High: [Score 2660] [Rank 182] |
User avatar
Major initus
 
Posts: 96
Joined: Sat Jan 20, 2007 4:51 pm
Location: Incognito

Re: Game Jump v0.2

Postby scottp on Mon Oct 31, 2011 9:45 pm

this has been a very useful script, but it won't accept the new 8-digit game numbers.
Image
Account sitters = MagnusGreeol, concrete, RKCVED
User avatar
Major scottp
 
Posts: 455
Joined: Tue May 13, 2008 2:05 pm
Location: Dead Zone, TX

Re: Game Jump v0.2

Postby Masli on Tue Nov 01, 2011 2:52 am

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
Colonel Masli
 
Posts: 3000
Joined: Mon May 07, 2007 4:43 am

Re: Game Jump v0.2

Postby scottp on Thu Nov 03, 2011 9:22 pm

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

Re: Game Jump v0.2

Postby Masli on Fri Nov 04, 2011 3:03 am

and what do you think I changed :roll: :roll:
Image
Colonel Masli
 
Posts: 3000
Joined: Mon May 07, 2007 4:43 am

Re: Game Jump v0.2

Postby ender516 on Fri Nov 04, 2011 7:46 am

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
Sergeant 1st Class ender516
 
Posts: 4455
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario

Re: Game Jump v0.2

Postby Calidrmr on Fri Nov 11, 2011 11:59 pm

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.
User avatar
Sergeant 1st Class Calidrmr
 
Posts: 641
Joined: Wed Sep 12, 2007 5:00 pm
Location: the corner bar...


Return to Tool Archives

Who is online

Users browsing this forum: No registered users