Compare commits
6 Commits
9d1c98dd98
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f212aace6 | |||
| f6c165c0a1 | |||
| 53262c128c | |||
| e65077957d | |||
| e3c6cc60dd | |||
| c8356d6ef9 |
@@ -2,7 +2,8 @@
|
|||||||
// @name Bazaar Helper
|
// @name Bazaar Helper
|
||||||
// @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
|
||||||
// @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!
|
// @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*
|
||||||
@@ -31,8 +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');
|
||||||
console.log(marketItems);
|
|
||||||
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