Last active
January 1, 2016 17:29
-
-
Save mutaku/8177505 to your computer and use it in GitHub Desktop.
Convert Pounds to US Dollars on road.cc reviews
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: ( | |
function () { | |
var data = document.getElementsByClassName("review-price"); | |
for (var i = 0; i < data.length; i++) { | |
if (data[i].innerHTML.indexOf("£") != -1) { | |
data[i].innerHTML = '$' + Math.round(data[i].innerText.replace('£', '') * 1.6479 * 100) / 100; | |
} | |
} | |
}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment