I though about making a thread to post some useful scripts that might be helpful to some of you.
Here is one I just used again recently:
For what: amiami.com
What does it do: It highlights figures that are under a certain price point and goes to the next page if none are present. I'm using it for the used figurines section.
How to use: Copy the code into the browser console while on amiami.com. If results are found you can press 'N' to go to the next page. If none are found it'll continue automatically.
I whipped this one up in a couple of minutes and it seems to work.
I use it to have some variation in my figurines and sell the ones I no longer want (often for a profit) and then use this script to quickly find new ones.
Now I might be stupid and simple did not see the price range selector though so this script could also be completely useless. Let me know though.
Here is one I just used again recently:
For what: amiami.com
What does it do: It highlights figures that are under a certain price point and goes to the next page if none are present. I'm using it for the used figurines section.
How to use: Copy the code into the browser console while on amiami.com. If results are found you can press 'N' to go to the next page. If none are found it'll continue automatically.
JavaScript:
let priceGood = 1000;
let priceOk = 2500;
(() => {
setInterval(() => {
let prices = document.querySelectorAll(['.newly-added-items__item__price'])
let statusOfOrders = document.querySelectorAll(['.newly-added-items__item__tag-list'])
let closed = 0
for (let s of statusOfOrders) {
if (s.lastChild.innerText === "Order Closed" &&
s.lastChild.style.display !== 'none') {
++closed
} else {
let priceInfos = (s.parentElement.lastChild.lastChild.innerText ?? '').split(' ')
let p = +priceInfos[0].replace(',', '')
if (!(p > 0 && p < priceOk)) {
++closed
}
}
}
if (closed === 20) {
closed = 0
document.querySelector('.pager__next').firstChild.click()
}
for (let price of prices) {
let priceInfos = price.innerText.split(' ')
let p = +priceInfos[0].replace(',', '')
if (p < priceGood) {
price.parentElement.parentElement.style.background = '#77ff77'
} else if (p < priceOk) {
price.parentElement.parentElement.style.background = '#ffff77'
}
}
for (let status of statusOfOrders) {
if (status.lastChild.innerText === "Order Closed" &&
status.lastChild.style.display !== 'none') {
status.parentElement.style.background = "#ff4444"
}
}
}, 1000)
document.addEventListener('keypress', (e) => {
if (e.code === 'KeyN') {
document.querySelector('.pager__next').firstChild.click()
}
})
})()
I whipped this one up in a couple of minutes and it seems to work.
I use it to have some variation in my figurines and sell the ones I no longer want (often for a profit) and then use this script to quickly find new ones.
Now I might be stupid and simple did not see the price range selector though so this script could also be completely useless. Let me know though.