Compare commits
6 Commits
9d1c98dd98
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f212aace6 | |||
| f6c165c0a1 | |||
| 53262c128c | |||
| e65077957d | |||
| e3c6cc60dd | |||
| c8356d6ef9 |
@@ -2,7 +2,8 @@
|
||||
// @name Bazaar Helper
|
||||
// @namespace https://jotde.eu
|
||||
// @updateURL https://gitea.jotde.be/jens/tornjs/raw/branch/master/bazaar.user.js
|
||||
// @version 0.2
|
||||
// @downloadURL https://gitea.jotde.be/jens/tornjs/raw/branch/master/bazaar.user.js
|
||||
// @version 0.6
|
||||
// @description try to take over the world!
|
||||
// @author JotDe:
|
||||
// @match https://www.torn.com/bazaar.php*
|
||||
@@ -31,8 +32,7 @@ async function forElement(element) {
|
||||
}
|
||||
|
||||
async function changePlaceholder(marketItems) {
|
||||
let itemList = document.querySelectorAll('ul[class^="items-cont"][style="display:block;"] li');
|
||||
console.log(marketItems);
|
||||
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];
|
||||
|
||||
Reference in New Issue
Block a user