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

Function getCurrentLogDate

scripts/ufs_statistic_old.js:633–638  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

631}
632
633function getCurrentLogDate() {
634 let splitted = location.pathname.split("/");
635 let last = splitted[splitted.length - 1];
636 if (last === "" || last === "log") return new Date();
637 return new Date(last);
638}
639
640function addDate(date, amount) {
641 let newDate = new Date(date);

Callers 1

onDocumentEndFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected