diff --git a/background.js b/background.js index fd456a7..740c3c1 100644 --- a/background.js +++ b/background.js @@ -1,4 +1,4 @@ -const postLinkRegEx = /^https:\/\/forum.duolingo.com\/comment\/[0-9]{8}/g; +const postLinkRegEx = /^https:\/\/forum.duolingo.com\/comment\/[0-9]+/g; chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { if (changeInfo.status == "complete" && tab.url.match(postLinkRegEx)) { diff --git a/injected.js b/injected.js index e196dfa..4cd7862 100644 --- a/injected.js +++ b/injected.js @@ -90,7 +90,7 @@ chrome.runtime.onMessage.addListener(async (request) => { credentials: "include" } ); - console.log(`Gave lingot ${i}/${count}.`); + console.log(`Gave lingot ${i+1}/${count}.`); } } } diff --git a/manifest.json b/manifest.json index 1f4c977..a53bca7 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Giving Duo", - "version": "1.0.1", + "version": "1.0.2", "permissions": [ "https://forum.duolingo.com/comment/*", "https://forum-api.duolingo.com/comments/*/love",