diff --git a/src/iso.js b/src/iso.js index 51902ba..17b49ab 100644 --- a/src/iso.js +++ b/src/iso.js @@ -167,12 +167,28 @@ const loadStats = () => { let currentStreakStart = null let currentStreakEnd = null - const data = [...document.querySelectorAll('.js-calendar-graph-table tbody td.ContributionCalendar-day')].map((d) => { + const dayNodes = [...document.querySelectorAll('.js-calendar-graph-table tbody td.ContributionCalendar-day')].map( + (d) => { + return { + date: new Date(d.dataset.date), + week: d.dataset.ix, + color: getSquareColor(d), + tid: d.getAttribute('aria-labelledby') + } + } + ) + + const tooltipNodes = [...document.querySelectorAll('.js-calendar-graph tool-tip')].map((t) => { + return { + tid: t.id, + count: getCountFromNode(t) + } + }) + + const data = dayNodes.map((d) => { return { - count: getCountFromNode(d), - date: new Date(d.dataset.date), - week: d.dataset.ix, - color: getSquareColor(d) + ...d, + ...tooltipNodes.find((t) => t.tid === d.tid) } }) diff --git a/src/manifest-v2.json b/src/manifest-v2.json index 8265c22..e13f092 100644 --- a/src/manifest-v2.json +++ b/src/manifest-v2.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "GitHub Isometric Contributions", - "version": "1.1.27", + "version": "1.1.28", "description": "Renders an isometric pixel view of GitHub contribution graphs.", "content_scripts": [ { diff --git a/src/manifest.json b/src/manifest.json index 0bb03c9..6fdea6e 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "GitHub Isometric Contributions", - "version": "1.1.27", + "version": "1.1.28", "description": "Renders an isometric pixel view of GitHub contribution graphs.", "content_scripts": [ { @@ -15,10 +15,5 @@ "icons": { "48": "icon-48.png", "128": "icon-128.png" - }, - "browser_specific_settings": { - "gecko": { - "id": "isometric-contributions@jasonlong.me" - } } }