mstodo query

This commit is contained in:
Sebastian Frank 2020-10-11 20:18:09 +02:00
parent e019d5660b
commit 337acb5448

View File

@ -127,7 +127,11 @@ export default {
host: "https://to-do.office.com",
urlPatterns: [":host:/tasks/id/:id(*)"],
description: (document) =>
document.querySelector(".detailHeader")?.textContent?.replace(projectRegex, "").trim(),
document
.querySelector(".detailHeader")
?.textContent?.replace(/^[^[]+\[/, "[")
.replace(projectRegex, "")
.trim(),
projectId: projectIdentifierBySelector(".detailHeader"),
allowHostOverride: false,
},