Skip to content

Instantly share code, notes, and snippets.

@kunday
Last active May 10, 2017 03:05
Show Gist options
  • Select an option

  • Save kunday/046a545d7c9ac3a135b5037b13c831d5 to your computer and use it in GitHub Desktop.

Select an option

Save kunday/046a545d7c9ac3a135b5037b13c831d5 to your computer and use it in GitHub Desktop.
Show Realestate Prices always in monthly.
// ==UserScript==
// @name Weekly To Monthly Crap
// @namespace http://www.realestate.com.au/*
// @version 1
// @grant none
// ==/UserScript==
const UpdatePrices = function() {
var elements = document.querySelectorAll('.priceText');
for ( var i in elements ) {
var el = elements[i];
if(el.innerText !== undefined) {
var priceText = el.innerText.match(/\d+/g).map(Number)[0];
el.innerHTML = "$" + Math.round(priceText*4.34) + "/month.";
}
}
}
UpdatePrices();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment