Twilight Forums

Idle chat for wannabe heroes
It is currently Thu May 23, 2013 11:16 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 353 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next
Author Message
 Post subject: Greasemonkey
PostPosted: Thu Nov 15, 2007 4:47 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
Today I made two greasemonkey script and I thought maybe other people would find it useful too.

First I made this one to put a rest link on the top after somerset: http://xtraterrestrial.googlepages.com/restlink.user.js
My method of inserting the link doesn't seem very efficient but since that page only loads once I didn't think it was too bad.

Then I tried to do a slightly bigger project and make an experience bar, mainly because I wanted to see my levelling progress when I had the (click here to train) link showing: http://xtraterrestrial.googlepages.com/LevelBar.user.js
I tried to get it to be next to the XP: but I got a bit stuck :(
EDIT: Forgot to say it only goes up to level 31 because that's all the wiki had at Level_Mechanics

Anyway If anyone has any greasemonkey scripts they want to share or can tell me how to improve mine that would be great :)

Sorry sounos, but QFT. Seriously. Just. Yeah. Please see Cristiona's quote before reporting problems for either TH or GM scripts. [[>MN

Cristiona wrote:
Just be sure that the scripts you install aren't malicious, and, for the love of God, remember what scripts you install. Every now and then someone posts a bug on the KoL forums and it turns out it's something their script is doing.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 15, 2007 6:44 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 7:54 pm
Posts: 517
Location: Where I could swear I left the universe last...
Ryme said he was going to create an exp. bar eventually, but it's nice to have this for now. For those of us who are smart enough to use greasemonkey.

_________________
TheK3vin- #325

http://soundcloud.com/thek3vin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 12:41 am 
Offline
User avatar

Joined: Tue Nov 06, 2007 10:28 pm
Posts: 56
Location: California
Hey thanks! That's useful! I wish I were better at scripting this crap. I would make some pretty nifty greasemonkies. :twisted:

_________________
Part Spock, part Yoda... a bit of a freak, to be sure!
Of only one thing can you be certain...
He DEFINITELY has pointy ears.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 12:46 am 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
Stationary buttons, perhaps?

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 12:48 am 
Offline

Joined: Tue Oct 02, 2007 1:27 am
Posts: 74
Cristiona wrote:
Stationary buttons, perhaps?
If the buttons just loaded from the bottom of the page upwards, it would work effectively the same way (I think).

_________________
out-out the lights-out all! and over each quivering form
the curtain, a funeral pall, comes down with the rush of a storm
and the angels all pallid and wan, uprising unveiling affirm
that the play is the tragedy man, and its hero the Conqueror Worm.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 12:55 am 
Offline
User avatar

Joined: Fri Nov 02, 2007 7:54 pm
Posts: 517
Location: Where I could swear I left the universe last...
And by the way, I am NOT one of those people smart enough to use Greasemonkey. Especially since, at least lately, I've used someone else's computer 99% of the time while playing. But I'll just assume it's quite satisfactory.

_________________
TheK3vin- #325

http://soundcloud.com/thek3vin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 2:08 am 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
Cristiona wrote:
Stationary buttons, perhaps?


I don't know if this is what you mean, but i quickly put this together pretty much butchered up version of d0om combat UI enhancer.

Here is a picture of what it looks like: http://i233.photobucket.com/albums/ee18 ... combat.jpg (that is attack, skill, item, run, patrol)

I really didn't know where to put it, I wanted it alongside the Combat! header but my HTML skills fail :(
http://xtraterrestrial.googlepages.com/ ... at.user.js
oh also clicking any button when the guy is dead makes it patrol again.

EDIT: Please give me tips to change it :)

EDIT2: :oops: after playing with this for a bit I have added for choice adventures buttons 1,2,3 that choose the respective option but I didn't really test this as I only got 2 choice adventures!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 2:57 am 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
Looks just like what I was looking for!

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 11:46 am 
Offline
User avatar

Joined: Thu Nov 15, 2007 12:54 pm
Posts: 31
That is excellent. Thanks! The Rest button script saves much time too.

_________________
Vi Veri Veniversum Vivus Vici
"By the power of truth, I, while living, have conquered the universe."


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 23, 2007 1:32 pm 
Offline
User avatar

Joined: Thu Nov 08, 2007 7:20 pm
Posts: 264
Location: England
I have no idea about GreaseMonkey. Not a clue. :\


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 12:11 am 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
The choice adventure select thing didn't work at all >_< Here is a fixed version. Also apparently it wasn't showing the buttons on some fight pages and the only reason I could think of was that the page didn't have the 'Combat!' header so I changed the script to not use that as the indicator of where to place it. Please tell me if it still doesn't work! I uploaded the updates version in the same place:
http://xtraterrestrial.googlepages.com/ ... at.user.js
Looks like installing from there it makes two sets of buttons so you probably want to uninstall the old version first. (Right click greasemonkey icon, manage scripts, choose stationary combat buttons, click uninstall)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 24, 2007 10:39 am 
Offline
User avatar

Joined: Fri Nov 16, 2007 7:51 pm
Posts: 449
This is very nice. Thank you. Now if only I had a quick-skills list. That's probably better done by Ryme, though, since it should be in the game.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 10:33 pm 
Offline

Joined: Tue Nov 06, 2007 8:22 pm
Posts: 18
Sounos, thanks for these. The "Rest" link is especially cool!

_________________
"I don't have enough time to do all the procrastinating I want to."--Littleghost, in chat


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 10:45 am 
Offline
User avatar

Joined: Wed Nov 07, 2007 10:08 pm
Posts: 4
Location: St. Louis, MO
Rombo wrote:
I have no idea about GreaseMonkey. Not a clue. :\

First off, you need to use Firefox as your browser.
http://www.mozilla.com/en-US/firefox/
Next, you need to download and install Greasemonkey.
https://addons.mozilla.org/en-US/firefox/addon/748
...
Now, as to "what is Greasemonkey"? Greasemonkey is an add-on to Firefox that allows "scripts" to be run on selected webpages, to alter the way they are displayed. Now, while I have no idea how to WRITE these scripts, I have extensive experience using Greasemonkey scripts with Kingdom of Loathing, and they can make the gameplay experience MUCH faster, with less clicking... therefore, more fun.
...
Try it out, and see what you think.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 12:25 pm 
Offline
User avatar

Joined: Thu Nov 08, 2007 7:20 pm
Posts: 264
Location: England
Ok, thanks Monster, I'll give it a try. :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 26, 2007 9:35 pm 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
Just be sure that the scripts you install aren't malicious, and, for the love of God, remember what scripts you install. Every now and then someone posts a bug on the KoL forums and it turns out it's something their script is doing.

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 01, 2007 6:54 am 
Offline

Joined: Thu Nov 29, 2007 5:37 pm
Posts: 3
Works just dandy for me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 03, 2007 2:44 pm 
Offline
User avatar

Joined: Sun Sep 09, 2007 9:21 pm
Posts: 134
Wow, thanks a lot! Both the rest and the exp. bar are very nice to have!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 07, 2007 9:12 am 
Offline
User avatar

Joined: Fri Nov 16, 2007 7:51 pm
Posts: 449
The stationary combat buttons are still treating me great, but I wish there were some way to not have the choice adventure buttons occupy the same space. I don't want pep-up pills!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 3:44 pm 
Offline
User avatar

Joined: Thu Nov 08, 2007 7:20 pm
Posts: 264
Location: England
I still. Don't. Get it.

:(


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 09, 2007 9:14 pm 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
Could you vague that up a little?

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 9:19 am 
Offline
User avatar

Joined: Fri Nov 16, 2007 7:51 pm
Posts: 449
Okay, Cristiona, I'll be more specific.
If you click on "A" for "Attack" in the cube when it gets to the Intermission adventure 1-2-3 pops up instead of A-S-I-R-P.
The 1 is in the same space as A. That way, unless I'm paying really close attention as I click, I end up with a damn pep-up pill.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 1:36 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
mad hamish wrote:
Okay, Cristiona, I'll be more specific.


I got the impression he was taking to Rombo but anyway..

http://xtraterrestrial.googlepages.com/ ... t2.user.js

That moves the 1 2 3 P buttons along so they aren't on top of the other buttons. I wasn't sure if I should do this or get rid of the 1 2 3 buttons entirely so please tell me which you prefer :) Also might want to delete the other stationary buttons first.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 3:17 pm 
Offline
User avatar

Joined: Fri Nov 16, 2007 7:51 pm
Posts: 449
I haven't tried it yet, but I think moved slightly is exactly what I want. Unless you can let me select a default action and save that preference until I say otherwise.
edit: woah. It's doing goofy stuff. It does nothing when I click on 3, and I've had what I think was choices carrying over when I clicked multiple buttons while messing around or maybe just sometimes button 1 doesn't correspond to choice 1. Still solves my problem, if I don't use it for the choice adventures at all.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 5:39 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
Oh dear, that's what I get for procrastinating all night and then trying to do anything in the morning.
http://xtraterrestrial.googlepages.com/ ... t2.user.js
Try that one instead.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 8:28 pm 
Offline
User avatar

Joined: Fri Nov 16, 2007 7:51 pm
Posts: 449
Alright. This works quite excellent for my purposes. Thank you very much.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 10, 2007 9:36 pm 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
sounos wrote:
I got the impression she was taking to Rombo but anyway...
Yeah, I was.

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 11, 2007 12:07 am 
Offline
User avatar

Joined: Fri Nov 16, 2007 7:51 pm
Posts: 449
Didn't even notice. That's what I get for posting while stupid.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 22, 2007 10:37 pm 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
I has a request! And one that's probably complicated and/or challenging!

I want to be able to have custom outfits, like KoL does. For instance, I tell the script that I want to wear a certain five pieces for "farming", and a different set for "chip hunting", and a third for "the pit", and another for "casual" and so on.

Is this even possible? And if it is, how much of a pain in the ass will it be?

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 22, 2007 11:28 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
Cristiona wrote:
Is this even possible? And if it is, how much of a pain in the ass will it be?


I'd guess its possible but I have little to no idea about how to store information with greasemonkey. Also procrastination levels are running high (see PFE ComicContest) so I don't want to say I will do something :P

Do or don't expect an update soon.

*resumes lurking*


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 22, 2007 11:43 pm 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
Hmm... yeah... forgot about the storage issue.

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 23, 2007 12:03 am 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
Cristiona wrote:
Hmm... yeah... forgot about the storage issue.


It wouldn't say it's an issue: I know that it's possible to store information like that I just wouldn't know where to begin. I might have to go snooping in other people's scripts again :P


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 30, 2007 5:44 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
I finally got around to doing something on this:

http://i233.photobucket.com/albums/ee18 ... utfits.gif

Essentially when you equip an item it gets put into the 'Current Outfit:' box then when you have the gear you want in your outfit in that box you can name and save the outfit. (text box on the right is where you put the outfit name) Drop-down can then be used to select an outfit and change to it.

Its quite buggy swapping in accessories if your outfit includes an accessory that you already have equipped. Also I don't have much equipment on my character so I fear it may run very slowly for a person who has a lot of gear.

http://xtraterrestrial.googlepages.com/ ... ts.user.js

This is a very fun project so please tell me if there is any things you want added I'm hopefully going to be adding multiple character support and maybe try to make it able to read the gear you currently have equipped.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 30, 2007 9:25 pm 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
Ooo... I'll give this a try, but it looks very nice.

EDIT: Okay, I've played around with it.

1) The "Current Outfit" box doesn't flush itself properly. If you put on and outfit, and then change outfits, you'll have both in the Current box. Not major, but I just had to remember to clear it out. (Edit2: Seems refreshing the 'Wear Things' screen flushes the box)

2) Perhaps an 'unequip all' button? It would reduce error messages, and make it easier to load it with all your outfits.

3) Other than that, it seems to work very nicely. Thank you very much!

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 17, 2008 8:10 am 
Offline
User avatar

Joined: Fri Nov 02, 2007 7:54 pm
Posts: 517
Location: Where I could swear I left the universe last...
I'm enjoying my "Rest" link and stationary buttons immensely. How hard is it to learn to write these scripts? I've done some coding in the past and I'd honestly like to try some Greasemonkeying.

_________________
TheK3vin- #325

http://soundcloud.com/thek3vin


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 01, 2008 3:54 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
I haven't been around very much for January so I'm not sure if this is still relevant but I have finally got around to fixing the stuff you asked for.
http://xtraterrestrial.googlepages.com/ ... ts.user.js

TheK3vin wrote:
I'm enjoying my "Rest" link and stationary buttons immensely. How hard is it to learn to write these scripts? I've done some coding in the past and I'd honestly like to try some Greasemonkeying.


How difficult to learn would depend on your knowledge of HTML and javascript. My understanding is pretty basic but I can usually get by with Google :P


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 02, 2008 2:59 am 
Offline
User avatar

Joined: Sun Apr 08, 2007 1:01 am
Posts: 4230
Location: the Conservatory with the lead pipe
Works great; thanks!

_________________
Image
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 02, 2008 4:59 am 
Offline

Joined: Sun Jan 13, 2008 5:44 am
Posts: 50
I'm liking the outfit one also. Works good.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 08, 2008 12:16 pm 
Offline
User avatar

Joined: Fri Nov 16, 2007 7:51 pm
Posts: 449
Can I get a link to the sickbay and radiation lab placed to the right of the menu on top? Hopefully with the pictures from the game there. That'd be an awesome script.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 09, 2008 10:15 pm 
Offline
User avatar

Joined: Fri Nov 02, 2007 11:23 pm
Posts: 32
mad hamish wrote:
Can I get a link to the sickbay and radiation lab placed to the right of the menu on top?


I haven't got either of those places unlocked but I could if someone tells me what the URLS are.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 353 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group