I would like to load a website with prices converted to my currency, so I need to multiply the value within a span by a constant. For exemple:
109 €I need the script to multiply the value within that span and print the result without the euro sign.
// ==UserScript==
// @name PriceChanger
// @version 1
// @grant none
// @include *://*.website.com/*
// ==/UserScript==
document.getElementsByClassName("prod-price").innerHTML = getElementsByClassName("prod-price") * 2;
Expected result: "218" instead of "109 €"