From 3f212aace615d3acd447253b58080933e615d292 Mon Sep 17 00:00:00 2001 From: JotDe Date: Mon, 4 May 2020 00:10:03 +0200 Subject: [PATCH] set all items with avg and count --- bazaar.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazaar.user.js b/bazaar.user.js index b5a9052..6cd9839 100644 --- a/bazaar.user.js +++ b/bazaar.user.js @@ -3,7 +3,7 @@ // @namespace https://jotde.eu // @updateURL https://gitea.jotde.be/jens/tornjs/raw/branch/master/bazaar.user.js // @downloadURL https://gitea.jotde.be/jens/tornjs/raw/branch/master/bazaar.user.js -// @version 0.5 +// @version 0.6 // @description try to take over the world! // @author JotDe: // @match https://www.torn.com/bazaar.php* @@ -32,7 +32,7 @@ async function forElement(element) { } async function changePlaceholder(marketItems) { - let itemList = document.querySelectorAll('ul[class^="items-cont"][style="display:block;"] li'); + let itemList = document.querySelectorAll('div[class="category-wrap"] ul[class^="items-cont"] li'); itemList.forEach((item) => { const itemid = item.querySelector("img").getAttribute("src").split("/")[3]; const marketItem = marketItems[itemid];