From 12cf2061abd64421936fcc43a53adaea4c92f8c8 Mon Sep 17 00:00:00 2001 From: xiiyuki <87499654+xiiyuki@users.noreply.github.com> Date: Sat, 6 Jun 2026 15:55:27 +0200 Subject: [PATCH] Plugin for hiding network offline alerts If "Your computer seems to be offline. We'll keep trying to reconnect" alert appears as false-positive (f.e. when using AdGuard DNS), this plugin will allow the alert to stay hidden and never appear. --- .../hide_offline_alert/hide_offline_alert.js | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 plugins/hide_offline_alert/hide_offline_alert.js diff --git a/plugins/hide_offline_alert/hide_offline_alert.js b/plugins/hide_offline_alert/hide_offline_alert.js new file mode 100644 index 0000000..75435a1 --- /dev/null +++ b/plugins/hide_offline_alert/hide_offline_alert.js @@ -0,0 +1,31 @@ +module.exports = { + name: "Hide Offline Alert", + description: "Hides network offline alert (Your computer seems to be offline. We'll keep trying to reconnect)", + version: "1.0.0", + author: "xiiyuki", + context: { + renderer: "own" + }, + func: () => { + "use strict"; + + function log(...args) { + console.log("[Hide Offline Alert]", ...args); + } + + // Create new style sheet + const style = document.createElement('style'); + + // Use attribute selector (data-testid), to target and hide AppOfline alert + style.innerHTML = ` + [data-testid="alert-AppOffline"] { + display: none !important; + } + `; + + // Inject style into head section + document.head.appendChild(style); + + log("Offline alert hidden"); + } +} \ No newline at end of file