set all items with avg and count
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// @namespace https://jotde.eu
|
// @namespace https://jotde.eu
|
||||||
// @updateURL https://gitea.jotde.be/jens/tornjs/raw/branch/master/bazaar.user.js
|
// @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
|
// @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!
|
// @description try to take over the world!
|
||||||
// @author JotDe:
|
// @author JotDe:
|
||||||
// @match https://www.torn.com/bazaar.php*
|
// @match https://www.torn.com/bazaar.php*
|
||||||
@@ -32,7 +32,7 @@ async function forElement(element) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function changePlaceholder(marketItems) {
|
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) => {
|
itemList.forEach((item) => {
|
||||||
const itemid = item.querySelector("img").getAttribute("src").split("/")[3];
|
const itemid = item.querySelector("img").getAttribute("src").split("/")[3];
|
||||||
const marketItem = marketItems[itemid];
|
const marketItem = marketItems[itemid];
|
||||||
|
|||||||
Reference in New Issue
Block a user