diff --git a/ChatGPT PreMod.user.js b/ChatGPT PreMod.user.js index 97b42b3..e650065 100644 --- a/ChatGPT PreMod.user.js +++ b/ChatGPT PreMod.user.js @@ -56,8 +56,6 @@ }, duration); }; - showBanner("PreMod Active"); - const pendingBridgeRequests = new Map(); const messageListener = (event) => { @@ -77,6 +75,14 @@ window.postMessage({ type: 'premod-bridge', id, op: operation, key, value }, '*'); }); + bridge('get', 'showStartupBanner').then(v => { + if (v === undefined || v === null) { + bridge('set', 'showStartupBanner', true); + } + if (v === false || v === "false") return; + showBanner("PreMod Active"); + }); + const apiUrlPattern = /\\/backend-api\\/(?:f\\/)?conversation(?:\\/[a-f0-9-]{36})?(?:\\?.*)?$/i; const unblockFlagged = (moderationObj) => moderationObj?.blocked && (moderationObj.blocked = false, true);