Everyone day dreams about getting rich one day right?....right?

So the other day I thought "I'd buy every-game on my wishlist"

Is there a site like SG that lets me link my steam and it calculates the price of my wishlist total?

11 years ago*

Comment has been collapsed.

Open the calculator on windows or the app on your phone and add them.

11 years ago
Permalink

Comment has been collapsed.

This is 2013 ... fuck that.

Plus some make me load the store page and I rather not load that many on this shit internet.

11 years ago
Permalink

Comment has been collapsed.

I would do it, but I cant see your wishlist. AT this point in tim, mine's around $560...I only REALLY want like 6 games on it though so prob around $300. Metro is one which is on sale, so could be a tiny bit more.

11 years ago
Permalink

Comment has been collapsed.

So what you're saying is that you'd rather waste 10 minutes trying to find something to stop you wasting 3 minutes adding shit up?

11 years ago
Permalink

Comment has been collapsed.

Took me less than 3 minutes to add mine. I'd say a solid minute.

11 years ago
Permalink

Comment has been collapsed.

have you guys thought about that some People dont only have 3 or 4 games on that list? do you want to sum 300 Prices by Hand? no? see...

11 years ago
Permalink

Comment has been collapsed.

if you have more than 100 games on your wishlist, you dont need to calculate the price, it will be "a lot" in general and thats everything you need to know

11 years ago
Permalink

Comment has been collapsed.

Nothing to do with you comment. Your profile pic is epic awesome.

11 years ago
Permalink

Comment has been collapsed.

Hm. I never thought about this before... It interested me so I went and added up my wishlist and the total (without any sales) comes to $919.55. Jeez! Though honestly I more or less use my wishlist as a list of games I've come across that I'm interested in. I just put it on the wishlist to make note of it so I don't completely forget about it.

11 years ago
Permalink

Comment has been collapsed.

+1 to this

11 years ago
Permalink

Comment has been collapsed.

1412.72

11 years ago
Permalink

Comment has been collapsed.

86.93

11 years ago
Permalink

Comment has been collapsed.

javascript:var iTot=0;var elem = document.getElementsByTagName('div');for(var i = 0; i < elem.length; i++){if((elem[i].className == "price")||(elem[i].className == "discount_final_price")){if(elem[i].innerText.length>0){var iTemp=parseFloat(elem[i].innerText.replace("$",""));iTot = iTot + iTemp;};};}alert(iTot);

Drop that into Google Chrome's developer console and press enter. Paste it into notepad first to make sure it's all one line, in case your browser dropped line returns into your clipboard when you copied it. It'll spit out the total value of your wishlist. I found it in a Steam forum post from 2011. There appears to be a small rounding error, but that's fixed if you just round up to the nearest whole currency denomination. Pennies for USD, for example.

In the current version of Chrome, the developer console is located in that button in the top right. Go to Tools, let it expand, and select Developer Tools. Paste the code there.

I suspect this will work for other browsers as well. It also works if you make a bookmark with this code as the website address, at least for Chrome. I don't know if it will for other browsers.

Using this, one could create a Chrome plugin to list this amount on your Steam Wishlist page automatically.

Make sure you're on your wishlist page when you use this.


For safe keeping: http://pastebin.com/s99q3bkV

11 years ago
Permalink

Comment has been collapsed.

thanks, i will try this :)

where do you learn such things?

11 years ago
Permalink

Comment has been collapsed.

I didn't create this, and I don't have the expertise committed to memory to do this off the top of my head.

However, following JavaScript documentation, I could have created this myself. I found this particular thing on a Steam Forum post from 2011.

What the code is doing, is scanning the entire page for elements pulled from a source external to the page. It checks to see if these elements are labeled as prices. Each time it finds a price, it adds it to the running total. If it detects an element labeled Discount Price, it instead adds that number to the running total, ignoring the regular price for that particular game. It then moves on to the next element detected. When it reaches the end of the page, it pops up that alert box with the total number for you.

11 years ago
Permalink

Comment has been collapsed.

Doesn't seem to work, at least not for me but I see what it's trying to do. Probably could do something similar in bash or any other scripting language, but to be honest when you only have a few items on your wish list it would probably take less time to use a calculator. I remember writing a program once that would create numbered folders from number X to Y, with the added option of floating zeros, and in the end it took me more time than actually creating those folders by hand :D

11 years ago
Permalink

Comment has been collapsed.

I have every Card-granting game in my wishlist that I don't have yet, plus games I actually want. I wrote every price into a notepad file and made a purely addition formula for them. I then copied that, pasted it into calc.exe, and waited eight seconds for it to catch up.

If I were to do this by hand each time I wanted to know the value, I would be wasting more time than I saved in the first instance. Because of this JavaScript, the person who spent extra time creating it has saved much more time for everyone else. Total time saved worldwide is thousands of times greater than the extra time spent by the original programmer.

11 years ago
Permalink

Comment has been collapsed.

As I said, only if you have a few items, you have 165 :D

Edit: I'm still trying to make the Javascript work, but I get

SyntaxError: Unexpected token {

all the time

Edit2: Goddamnit, deleted one of the parentheses.

384 €, hmm

11 years ago
Permalink

Comment has been collapsed.

Paste it into a text editor first to make sure that copying from the forum isn't inserting lines. This code should all be on a single line.

Alternatively, try copying from the pastebin and tell me if that works.

11 years ago
Permalink

Comment has been collapsed.

The one posted here will not work because of the codes replacing the quotation marks and the apostrophes, but the problem was that I reformated it to look more readable and during that time I probably deleted one of the parentheses.

11 years ago
Permalink

Comment has been collapsed.

thats awesome!

11 years ago
Permalink

Comment has been collapsed.

all I get is
[13:59:01.453] TypeError: elem[i].innerText is undefined

Thanks anyway.

11 years ago
Permalink

Comment has been collapsed.

Closed 11 years ago by iceguru.