diff --git a/code.user.js b/code.user.js index 5fc5521..09a4a0a 100644 --- a/code.user.js +++ b/code.user.js @@ -2408,12 +2408,6 @@ }); }, 1); - marketListingsQueue.drain = function() { - injectJs(function() { - g_bMarketWindowHidden = false; - }) - }; - // Gets the price, in cents, from a market listing. function getPriceFromMarketListing(listing) { var priceLabel = listing.trim().replace('--', '00'); @@ -2817,11 +2811,6 @@ myMarketListings.show(); fillMarketListingsQueue(); - - injectJs(function() { - g_bMarketWindowHidden = - true; // Limits the number of requests made to steam by stopping constant polling of popular listings. - }); }; @@ -3708,14 +3697,6 @@ head.appendChild(style); } - function injectJs(js) { - var script = document.createElement('script'); - script.setAttribute("type", "application/javascript"); - script.textContent = '(' + js + ')();'; - document.body.appendChild(script); - document.body.removeChild(script); - } - $.fn.delayedEach = function(timeout, callback, continuous) { var $els, iterator;