From be3bc0a4281f7363267a5b60a48fbb59bbf11237 Mon Sep 17 00:00:00 2001 From: Guy Sandler Date: Mon, 25 May 2026 18:33:10 -0700 Subject: [PATCH] quick fix --- _locales/en/messages.json | 2 +- html/popup.html | 6 +++++- js/content.js | 2 ++ js/popup.js | 3 +++ manifest.json | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 4503b90..bcaa7f8 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -1,5 +1,5 @@ { - "Canvas Refined": { + "Canvas_Refined": { "message": "Canvas Refined" }, "updates": { diff --git a/html/popup.html b/html/popup.html index c935720..100e43c 100644 --- a/html/popup.html +++ b/html/popup.html @@ -23,7 +23,7 @@
-

Canvas Refined

+

Canvas Refined

+
+ + +
Max items to show: diff --git a/js/content.js b/js/content.js index 7ec9907..f5cc428 100644 --- a/js/content.js +++ b/js/content.js @@ -2120,6 +2120,8 @@ function populateAnnouncements() { function createConfettiBurst(targetElement, opts = {}) { try { + if (options.todo_confetti === false) return; + const count = opts.count || 48; const colors = opts.colors || ['#ff4d4f', '#ffc107', '#28a745', '#17a2b8', '#6f42c1', '#ff6b6b', '#ff8a65', '#ffd54f']; const rect = targetElement.getBoundingClientRect(); diff --git a/js/popup.js b/js/popup.js index fcfea73..d95bbae 100644 --- a/js/popup.js +++ b/js/popup.js @@ -2,6 +2,7 @@ const syncedSwitches = ['remind', 'tab_icons', 'hide_feedback', 'dark_mode', 're const syncedSubOptions = [ "todo_hide_feedback", "todo_full_height", + "todo_confetti", "device_dark", "relative_dues", "card_overdues", @@ -113,6 +114,7 @@ const defaultOptions = { "todo_hide_feedback": false, "todo_full_height": false, "todo_progress_rings": true, + "todo_confetti": true, "device_dark": false, "cumulative_gpa": { "name": "Cumulative GPA", "hidden": false, "weight": "dnc", "credits": 999, "gr": 3.21 }, // "show_updates": false, @@ -305,6 +307,7 @@ function setup() { // /*'card_method_date',*/ "show_updates", "todo_hide_feedback", "todo_progress_rings", + "todo_confetti", "todo_full_height", "device_dark", "relative_dues", diff --git a/manifest.json b/manifest.json index 2df7822..5c47a54 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "manifest_version": 3, - "name": "Canvas Refined", + "name": "CanvasRefined", "description": "Even More Feature packed extension for Canvas.", "version": "5.12.6", "icons": {