Skip to content

Instantly share code, notes, and snippets.

View juice789's full-sized avatar
😸

juice789

😸
View GitHub Profile
(function() {
Array.from(document.getElementsByClassName('market_listing_price_without_fee')).map(item =>
{
item.style.display = 'block'
const key = 52.4
const p = 1 / key * 2.2
const res = (parseFloat(item.textContent.trim().replace('€','').replace(',','.')) / p)
const keys = Math.floor(res / key)
item.textContent = (keys < 1 ? res.toFixed(2) : `${keys} + ${(res - (keys * key)).toFixed(2)}`)