MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getCurrentLogDate

Function getCurrentLogDate

scripts/ufs_statistic.js:433–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431}
432
433function getCurrentLogDate() {
434 let splitted = location.pathname.split("/");
435 let last = splitted[splitted.length - 1];
436 if (last === "" || last === "log") return new Date();
437 return new Date(last);
438}
439
440function addDate(date, amount) {
441 let newDate = new Date(date);

Callers 1

onDocumentEndFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected