Last active
May 10, 2017 03:05
-
-
Save kunday/046a545d7c9ac3a135b5037b13c831d5 to your computer and use it in GitHub Desktop.
Show Realestate Prices always in monthly.
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
| // ==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