#1 Posted by madreisz (10 posts) -

That's easy enough. Use http://pastebin.com/Wicya87E instead, same instructions.

js provided again here:

javascript:a=function(n){return "w=parseInt(\$('#wager').val(),10);\$('#wager').val((w?w:0)+"+n+")"};n=function(b){return "\$('#wager').val("+b+")"};p=function(b){return "d=\$('#balance').text();\$('#wager').val(Math.floor(d*"+b+"))"};c=function(x,t){return '<input type="button" style="border-radius:5px;border: 2px solid #336633;margin:0.25em;padding:0;background:green;color:white;" onclick="'+x+'" value="'+t+'"/>';};\$('#wager').before(c(p(0.1),'10%')+c(p(0.25),'25%')+c(p(0.5),'50%')+c(p(0.75),'75%')+c(p(1),'All in!')+'<br/>'+c(n(0),'Reset')+c(a(10),'+10')+c(a(100),'+100')+c(a(1000),'+1k')+c(a(10000),'+10k'));

#2 Edited by madreisz (10 posts) -

cool idea, I've made a little piece of javascript that creates % and an all in wager button

http://pastebin.com/MdLgvfD6

You want to execute the code in the web console of your browser after you've loaded the page. e.g. in Chrome press ctrl-shift-j, paste the code in the prompt, and press enter. In firefox press ctrl-shift-k instead.

js provided again here:

javascript:n=function(b){return "\$('#wager').val("+b+")"};p=function(b){return "d=\$('#balance').text();\$('#wager').val(Math.floor(d*"+b+"))"};c=function(x,t){return '<input type="button" style="border-radius:5px;border: 2px solid #336633;margin:0.25em;padding:0;background:green;color:white;" onclick="'+x+'" value="'+t+'"/>';};\$('#wager').before(c(p(0.1),'10%')+c(p(0.25),'25%')+c(p(0.5),'50%')+c(p(0.75),'75%')+c(p(1),'All in!'));

You can modify the script pretty easy to make the buttons you want. e.g. if you want a 10k button, add c(n(10000),'10k') like this:

\$('#wager').before(c(n(10000),'10k')+c(p(0.1),'10%')+c(p(0.25),'25%')+c(p(0.5),'50%')+c(p(0.75),'75%')+c(p(1),'All in!'))

#3 Posted by madreisz (10 posts) -

@fluxbit: I've updated the page to include all podcasts up to now, and I (hopefully) have set it up so it should automatically update its list every day. Hurray

The new rss feed doesn't have the correct keywords for each podcast though and some descriptions are cut off, so the page is less useful. Boo

#4 Edited by madreisz (10 posts) -
#5 Posted by madreisz (10 posts) -

I am glad many like the page I created. I might work on it more over the weekend; if I do, I'll add the changes to the first post.

@Fascismo: I looked at your post in the API forum. I generated this simple XML file that you can try to use as a starting point. There are some 8-4 podcast images in there as well that you'll have to avoid. The latest Bombcast feed found here does contain the images you are looking for if you want to use that instead.

#6 Posted by madreisz (10 posts) -

@Demoskinos: I do have an API key, but haven't done anything with it. If the Bombcasts became exposed via the API that would be pretty useful. Right now the ids for the podcasts are obtained from a slow PhantomJS scrape of the archive page, which is pretty silly.

#7 Edited by madreisz (10 posts) -

19 08 12 update: I've made some changes (mostly to the javascript and json). You can find the new page here. I'll leave the old page up for now, but this new one is where I will maintain updates on the podcast information. The functionality is basically the same except that there are not (yet) any keyboard shortcuts in the new page.

Press alt + r or the "focus random" button to focus on a random visible bombcast:

After focusing on a bombcast, you can either press alt + o or click on its title to open its Giant Bomb podcast page.

You can do a simple phrase search by typing in the filter input: (the search is very inefficient)

I only intended to support Chrome, but it seems to work in most browsers. Right now the data used is generated by an offline script. It will become out-of-date when I forget to update it. Don't look at the code; it's garbage. And this might stop working when the Giant Bomb site changes.

But since it has already been useful to me, I hope someone else also finds it useful.

Old page.

#8 Edited by madreisz (10 posts) -
Browser: I see this issue in Chrome, Firefox 4, but it should appear in any browser.

Issue: On pages that have achievements in the sidebar, all achievement links have the same color even though an achievement should be probably colored by its rarity.

Examplehttp://www.giantbomb.com/achievements/nostalgia/83556/. The issue exists in the right sidebar.

Here is an image of the issue:

This happens because there is a more specific selector coloring the links in the sidebar:

The selector '.aside .bd a' is more important than the selector '.content-pod.achievement-stats .rare, .achievements .rare', so the color is not used.

Resolving the issue: Adding a more important selector to the each achievement rarity's coloring, or a selector of equal importance that comes after the '.aside .bd a' selector should resolve the issue.

Here is an example of the issue being fixed locally. For each achievement color selector, the selector '.aside .bd .[color class]' was added to it:

Shown in the screenshot is the fix being applied to the common selector color. The selector '.aside .bd .common' was added to the common achievement selector color, causing the color to be used. Similar fixes were applied to the rare and uncommon achievement selectors.

This might not be an issue and instead might be a design choice. Sorry for wasting your time if it is!