set all items with avg and count

This commit is contained in:
2020-05-04 00:10:03 +02:00
parent f6c165c0a1
commit 3f212aace6

View File

@@ -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];