Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> [GreaseMonkey] Hath Exchange Ratios and Auction End Date

 
post Jan 31 2009, 08:04
Post #1
Hairs Fan



Women body fetishist
******
Group: Members
Posts: 859
Joined: 15-September 08
Level 219 (Ascended)


I wrote a GreaseMonkey script which adds a few information in the Hath Exchange page:
  • the date of the end of each active auction (in your local time).
  • the ratio of the current or winning bid (GP/Hath or C/Hath).
  • the ratio of the buyout price.
  • the ratio of the user bid (computed as the user changes its value).
  • the mean ratios of the recently ended bids.
Here are the before/after screenshots:
- Before -
[www.flickr.com] (IMG:[farm5.static.flickr.com] http://farm5.static.flickr.com/4063/4519649460_496d2133cd_o.png)
- After -
[www.flickr.com] (IMG:[farm3.static.flickr.com] http://farm3.static.flickr.com/2789/4519013435_9bcb73b254_o.png)

- Before -
[www.flickr.com] (IMG:[farm3.static.flickr.com] http://farm3.static.flickr.com/2774/4519013457_036ec4906d_o.png)
- After -
[www.flickr.com] (IMG:[farm5.static.flickr.com] http://farm5.static.flickr.com/4028/4519649526_8bc717a3d8_o.png)

The main purposes of these additions are to know at what time you have to come back for the endgame bidding, and when an auction stop being interesting (because its GP/Hath or C/Hath ratio is too high compared with the mean corresponding ratio of the last ended auctions for instance).

In order to install it in Firefox, click [userscripts.org] here. You can also download the script (same link) and drag the downloaded file "73572.user.js" to your browser window to install it (might also install with IE7Pro).

I don't know if it works with IE7Pro. Since I'm not sure to know how to install an external GM script, I'll quote someone who knows:
QUOTE(CmptrWz @ Nov 3 2008, 01:54) *

The script (...) is named for installing in Firefox (Firefox Profile dir/gm_scripts). Change "user.js" to "ieuser.js" for IE7Pro (Program Files/IEPro/userscripts). You may need to activate the script manually after installing.


I'm not sure it'll be useful to somebody (I don't even use it anymore), but at least, it's shared now (IMG:[invalid] style_emoticons/default/smile.gif)

Updates:
CODE
- Added the ratio of the buyout price.
- Added the ratio of the user bid.
- Cleaned up the ratio string.
----------
- Fixed a bug with the handling of numbers above 1000000.
- Added support for the 12-hour clock model (its activation depends on the browser locales).
- Made sure that hours, minutes, days and months are always 2 digits length (adding a leading 0 when needed).
----------
- Added insignificant stuffs ...
----------
- Added British notation for numbers above 1000.


This post has been edited by Hairs' Fan: Apr 14 2010, 03:35
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 08:17
Post #2
cptkleenex




***********
Group: Gold Star Club
Posts: 11,785
Joined: 23-January 08
Level 304 (Godslayer)


Oh you computer nerds, what would we do without you?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 08:42
Post #3
Spectre



The Bell Tolls for All.
**********
Group: Global Mods
Posts: 8,655
Joined: 8-February 06
Level 274 (Godslayer)


Use the site in the old fashion, original way?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 09:04
Post #4
cptkleenex




***********
Group: Gold Star Club
Posts: 11,785
Joined: 23-January 08
Level 304 (Godslayer)


Oh you ghosts are always trapped in the 20th century.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 09:26
Post #5
masquepiph



Elite Poster
*********
Group: Gold Star Club
Posts: 6,823
Joined: 23-February 07
Level 370 (Godslayer)


Nice work (IMG:[invalid] style_emoticons/default/happy.gif)

I don't suppose you could add ','s to the numbers could you? (IMG:[invalid] style_emoticons/default/rolleyes.gif)

This post has been edited by DemonEyesBob: Jan 31 2009, 09:27
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 10:07
Post #6
Hairs Fan



Women body fetishist
******
Group: Members
Posts: 859
Joined: 15-September 08
Level 219 (Ascended)


QUOTE(DemonEyesBob @ Jan 31 2009, 08:26) *

I don't suppose you could add ','s to the numbers could you? (IMG:[invalid] style_emoticons/default/rolleyes.gif)

I don't guess I can't do it: check the new attached archive (IMG:[invalid] style_emoticons/default/wink.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 10:23
Post #7
warax



Regular Poster
******
Group: Members
Posts: 769
Joined: 15-October 06
Level 83 (Hero)


Decimals should be only used in numbers smaller than 1, also I'm apalled by decimal dot.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 11:18
Post #8
masquepiph



Elite Poster
*********
Group: Gold Star Club
Posts: 6,823
Joined: 23-February 07
Level 370 (Godslayer)


edit

This post has been edited by r3dd0ssal: Nov 5 2020, 18:59
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 11:50
Post #9
nick321



Active Poster
*******
Group: Gold Star Club
Posts: 1,549
Joined: 24-May 08
Level 146 (Ascended)


Some freaks use a comma for the decimal point.

It's pretty stupid...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jan 31 2009, 16:10
Post #10
Dlaglacz



Retired Galleries Maintenance Drone
**********
Group: Catgirl Camarilla
Posts: 7,899
Joined: 6-March 08
Level 156 (Lord)


QUOTE(nick321 @ Jan 31 2009, 10:50) *

Some freaks use a comma for the decimal point.

It's pretty stupid...


Lots of countries do. And they don't use any commas inside the number then.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 1 2009, 02:11
Post #11
EvolutionKing



1112345678999
**********
Group: Gold Star Club
Posts: 9,454
Joined: 2-May 07
Level 448 (Dovahkiin)


Nicely done. I had trouble getting it installed, until I realized that I could drag the file directly onto Firefox to install it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 1 2009, 02:25
Post #12
Hairs Fan



Women body fetishist
******
Group: Members
Posts: 859
Joined: 15-September 08
Level 219 (Ascended)


QUOTE(nick321 @ Jan 31 2009, 10:50) *

Some freaks use a comma for the decimal point.

It's pretty stupid...

It' stupid just because that's not the way *you* do ? Most European countries do so (except UK of course) as stated [en.wikipedia.org] here.

Anyway, the comma added in the script is the digit group separator, not the decimal one.

QUOTE(EvolutionKing @ Feb 1 2009, 01:11) *

Nicely done. I had trouble getting it installed, until I realized that I could drag the file directly onto Firefox to install it.

Glad you like (IMG:[invalid] style_emoticons/default/smile.gif) I'll modify the root message to add that other way to install the script.

This post has been edited by Hairs' Fan: Feb 1 2009, 02:28
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 1 2009, 18:50
Post #13
warax



Regular Poster
******
Group: Members
Posts: 769
Joined: 15-October 06
Level 83 (Hero)


Oh how I have made a mess of my vocabulary. What I meant to say was that using comma to separate zeroes of thousands and such is frustrating (I have ran into this with some process data and it was awful to move into another program). Also I meant to say that using a period instead of decimal comma is a real pain sometimes. I'm used to only have a decimal comma in numbers smaller than 1, and that should really be kept as a standard at least in the industry field.

I know this kind of comment stick out like a sore thumb, but I had to correct my own mistake. I don't use the script myself, but it's positive that some people have time on their hands to contribute such things.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 1 2009, 19:16
Post #14
Hairs Fan



Women body fetishist
******
Group: Members
Posts: 859
Joined: 15-September 08
Level 219 (Ascended)


QUOTE(warax @ Feb 1 2009, 17:50) *

I'm used to only have a decimal comma in numbers smaller than 1, and that should really be kept as a standard at least in the industry field.

I usually try to show at least 3 significant digits in my programs outputs, because if you have two values which have a small integral part (100 < i < -100), it's important to know their fractional parts in order to compare them.

As for differentiate the digit group separator from the decimal one, that's the job of [en.wikipedia.org] locales, so you generally don't have to bother about that (IMG:[invalid] style_emoticons/default/cool.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 1 2009, 20:32
Post #15
warax



Regular Poster
******
Group: Members
Posts: 769
Joined: 15-October 06
Level 83 (Hero)


Locales save me most of the time, but sometimes it fails me also. Industry has a retarded habit of using obsolete software which is compatible with other obsolete software. Problems usually arise when old data is transferred to newer formats and in worst cases, you have to do it by hand.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Feb 2 2009, 02:25
Post #16
NoNameNoBlame



she/they
**********
Group: Gold Star Club
Posts: 7,641
Joined: 20-July 08
Level 123 (Newbie)


Nice, nice. I love Greasemonkey scripts.
The optimal solution, of course, would be if God Tenboro added this to the site, so scripts wouldn't be necessary.

Anyway, good job. Thanks.

Also, you should publish this on [userscripts.org] Userscripts.org.

This post has been edited by 3d0xp0xy: Feb 2 2009, 02:33
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 11 2009, 14:47
Post #17
coredumperror



Ah ah ah... Vista is bad for you!
********
Group: Gold Star Club
Posts: 2,750
Joined: 31-January 09
Level 304 (Godslayer)


I sincerely apologize for zombifying this incredibly old thread, but it's a useful tool, so maybe it's not so bad.

Anyway, I was wondering if it would be possible for someone (maybe even the original author, if he's still around), to add the ability to see C/Hath ratios for the buyout price, in addition to the current bid. I'm a programmer myself, but javascript is not compatible with my meager C++ skills, sadly.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2009, 03:53
Post #18
Hairs Fan



Women body fetishist
******
Group: Members
Posts: 859
Joined: 15-September 08
Level 219 (Ascended)


QUOTE(coredumperror @ Nov 11 2009, 13:47) *

Anyway, I was wondering if it would be possible for someone (maybe even the original author, if he's still around), to add the ability to see C/Hath ratios for the buyout price, in addition to the current bid.

I've updated the script that way, and added other stuffs (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 13 2009, 03:57
Post #19
coredumperror



Ah ah ah... Vista is bad for you!
********
Group: Gold Star Club
Posts: 2,750
Joined: 31-January 09
Level 304 (Godslayer)


QUOTE(Hairs' Fan @ Nov 12 2009, 17:53) *

I've updated the script that way, and added other stuffs (IMG:[invalid] style_emoticons/default/smile.gif)


Sweeeeeeettt!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 19 2009, 10:27
Post #20
coredumperror



Ah ah ah... Vista is bad for you!
********
Group: Gold Star Club
Posts: 2,750
Joined: 31-January 09
Level 304 (Godslayer)


I noticed just a few hours ago that the recent changes you made to the script seemed to have stopped working for some reason.

Is anyone else experiencing this? I only see the calculated ratios on the Current Bids and Winning Bid column now. I'm guessing that something subtle got changed on the Hath Exchange page, and the script is suffering.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


2 Pages V  1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 18th July 2025 - 03:41