This file contains 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
function dateDiff_COMMENTED(date1, date2) { | |
let days = 0; | |
let months = 0; | |
let years = 0; | |
// The calculations need date1 to be earlier than date2. | |
// If date2 is earlier, swap date1 and date2 | |
if (date1 > date2) [date2, date1] = [date1, date2]; | |
let year1 = date1.getFullYear(); | |
let year2 = date2.getFullYear(); |
This file contains 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 Realestate.com.au hide previously viewed properties | |
// @namespace http://www.sacah.net | |
// @include http://www.realestate.com.au/buy/* | |
// @version 1 | |
// @grant none | |
// @license None | |
// ==/UserScript== | |
/* Clear saved results with |
This file contains 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 Realestate.com.au hide previously viewed properties | |
// @namespace http://www.sacah.net | |
// @include http://www.realestate.com.au/* | |
// @version 1 | |
// @grant none | |
// @license None | |
// ==/UserScript== | |
/* Clear saved results with |