From 8bc2ce126ab03e55b5e5a3957dab6a4a28b79fec Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Sun, 14 Jul 2024 16:24:47 +0300 Subject: [PATCH] Remove g_bMarketWindowHidden hack --- code.user.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/code.user.js b/code.user.js index 517bcc6..223fea7 100644 --- a/code.user.js +++ b/code.user.js @@ -2402,12 +2402,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'); @@ -2811,11 +2805,6 @@ myMarketListings.show(); fillMarketListingsQueue(); - - injectJs(function() { - g_bMarketWindowHidden = - true; // Limits the number of requests made to steam by stopping constant polling of popular listings. - }); }; @@ -3702,14 +3691,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;