httpsopenuserjs.orgloginauthfail / Amazon.com.br PARA DE CONSUMIR CARAI

// ==UserScript==
// @name        Amazon.com.br PARA DE CONSUMIR CARAI
// @namespace   Violentmonkey Scripts
// @match       https://www.amazon.com.br/*
// @grant       none
// @license     MIT
// @version     1.0
// @author      -
// @description 4/30/2021, 3:43:10 PM
// ==/UserScript==

///////////////////////////////
////💸SET MY VALUE PLEASE💸////
///////////////////////////////

const hourlyWage = 10;

///////////////////////////////
////💸SET MY VALUE PLEASE💸////
///////////////////////////////

if (!hourlyWage) {
    console.log(`///////////////////////////////
    ////💸DID U SET IT THOUGH💸////
    ///////////////////////////////
    `);
}

const element = (document.querySelector('#priceblock_ourprice') || document.querySelector('#priceblock_pospromoprice')) || document.querySelector('.priceBlockSavingsString');

if (!element) {
  console.log(`///////////////////////////////
////I CANT FIND ANYTHING AAA////
///////////////////////////////
`);

  return;
}

const priceString = element.textContent;
const price = Number(priceString.replace('.', '').replace(',', '.').split('R$')[1]);
const hoursOfWork = (price / hourlyWage).toFixed(2);

const newElement = document.createElement('span');
newElement.textContent = ` (${hoursOfWork} horas da sua vida)`;
newElement.style.fontSize = "11px";
newElement.style.opacity = 0.85;

if (hoursOfWork && !Number.isNaN(hoursOfWork)) {
  element.appendChild(newElement);
}