diff --git a/Extension/scripts/Auto-Image.js b/Extension/scripts/Auto-Image.js
index ed749b1..91e7b23 100644
--- a/Extension/scripts/Auto-Image.js
+++ b/Extension/scripts/Auto-Image.js
@@ -1051,6 +1051,21 @@ function getText(key, params) {
}
},
+ hideAlert: () => {
+ // Remove existing alerts immediately with safety checks
+ const alerts = document.querySelectorAll('.wplace-alert-base');
+ alerts.forEach(alert => {
+ try {
+ if (alert && alert.parentNode) {
+ alert.parentNode.removeChild(alert);
+ }
+ } catch (error) {
+ // Ignore removeChild errors if element was already removed
+ console.debug('Alert already removed:', error);
+ }
+ });
+ },
+
// Color utilities
colorDistance: (a, b) => window.globalUtilsManager ? window.globalUtilsManager.colorDistance(a, b) : Math.sqrt(Math.pow(a[0] - b[0], 2) + Math.pow(a[1] - b[1], 2) + Math.pow(a[2] - b[2], 2)),
findClosestPaletteColor: (r, g, b, palette) => window.globalUtilsManager ? window.globalUtilsManager.findClosestPaletteColor(r, g, b, palette) : [r, g, b],
@@ -2095,6 +2110,10 @@ function getText(key, params) {
${Utils.t('resizeImage')}
+