diff --git a/TogglLibrary.js b/TogglLibrary.js index 497aacade1bb0bac6ab47625d4cba252b8880c7a..09301de72165f9c83748dc9ad3e75de18d207c03 100644 --- a/TogglLibrary.js +++ b/TogglLibrary.js @@ -233,9 +233,9 @@ function TogglButtonGM(selector, renderer) { }); } - + const togglTimerUrl = /https:\/\/(?:www\.)toggl\.com\/app\/timer/; this.tryDecorateTimer = () => { - if (!window.location.href.startsWith("https://toggl.com/app/timer")) + if (!togglTimerUrl.test(window.location.href)) return; GM_addStyle("li.entry div.paragon-decoration { width:3em; padding:16px; }"); waitForElement(document, "#time-entry-list").then(timeEntryList => {