Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
* Update main.js

* Update main.js

* Update main.js

* Update main.js
Cette révision appartient à :
kilo 2017-08-07 06:51:25 +02:00 révisé par ewhal
Parent e0068456e7
révision ab9e3906e2

Voir le fichier

@ -53,16 +53,16 @@ function parseAllDates() {
var list = document.getElementsByClassName("date-full")
for (var i in list) {
if(list.length == 0)
break;
var e = list[i]
var dateDifference = dateDiff(new Date(e.innerText), new Date())
if(e.className.includes("scrape-date"))
e.title = ((dateDifference.d * 24) + dateDifference.h) + " hours " + dateDifference.m + " minutes ago" +
//e.title = T.r("torrent_age2", dateDifference.h, dateDifference.m)
if(e.className != undefined && e.className.includes("scrape-date"))
e.title = ((dateDifference.d * 24) + dateDifference.h) + " hours " + dateDifference.m + " minutes ago"
else
e.title = dateDifference.d + " days " + dateDifference.h + " hours ago"
//e.title = T.r("torrent_age", dateDifference.d, dateDifference.h)
e.innerText = new Date(e.innerText).toLocaleString(lang)
}
}