// ==UserScript==
// @name BundleFix
// @namespace Madjoki
// @include
http://store.steampowered.com/*
// @version 3
//
@GranT none
// ==/UserScript==
fn = setInterval(function(){
$J('div[data-ds-bundleid]').each(function (i, el){
$el = $J(el);
var id = $el.data('ds-bundleid');
var data = $el.data('ds-bundle-data');
if (!data.m_bMustPurchaseAsSet)
return;
$J('[data-ds-bundleid=' + id + ']').each(function (i, area) {
var btn = $J(area).find('div.btn_addtocart > a.btn_disabled');
if (btn.length == 0)
return;
btn.removeClass('btn_disabled').attr('href', 'javascript:addBundleToCart(' + id + ');');
$J(area).find('.discount_block').show();
});
clearInterval(fn);
});
}, 1000);