id=prowseir-all-seeing-eye name=All-Seeing Eye — Deception AI, Inline Highlights & Fact-Check version=2.0.0 author=roman_arco description=Optional Clearview Atlas Deception AI & Live Fact-Check extension (now 100% free & modular so Prowseir stays 100% AI-free out of the box!). Adds a Shadow-DOM 4-Tab Sidebar ([SIGNALS], [FACT-CHECK], [ASK SITE AI], [EXPORT/IMPORT]), inline manipulation highlights, live Wikipedia/CrossRef/DuckDuckGo verification, and two-sided conspiracy proof audits. Toggle anytime with Alt+Shift+E. site_pattern=* global=1 enabled=1 ---CODE--- // Prowseir All-Seeing Eye — Modular Deception AI, Inline Highlights & Live Fact-Check Extension // Keeps Prowseir 100% AI-free by default; install this extension only when you want local heuristic scanning + fact-checking! // Creator: by roman a. s. arco (function () { if (location.protocol === "prowseir:" || location.protocol === "about:") return; if (window.__prowseirAllSeeingEyeMounted) return; window.__prowseirAllSeeingEyeMounted = true; const CUSTOM_RULES_KEY = "__prowseir_eye_custom_rules_v1__"; const FACTCHECK_API = "https://prowseir.prowseir.workers.dev/api/factcheck"; const BUILTIN_RULES = [ { id: "urg-1", topic: "Artificial Urgency & Fake Deadlines", branch: "Emotional Manipulation", sev: "HIGH", rx: /(only \d+ (minutes?|hours?|spots?|left)|act now|expires tonight|within 24 hours|before it['’]?s too late|flash sale ends)/i, check: "Reload or open in an isolated tab ([ISO]) to check whether the countdown resets." }, { id: "scam-1", topic: "Hidden Auto-Renewal & Cancellation Trap", branch: "Persuasion, Sales & Dark Patterns", sev: "HIGH", rx: /(converts automatically|recurring monthly charge|billed automatically|to cancel.*call|non-refundable trial|auto-renew)/i, check: "Read full billing terms and verify 1-click written cancellation before entering payment info." }, { id: "cert-1", topic: "False Certainty & Miracle Claims", branch: "Falsehood & Overclaiming", sev: "HIGH", rx: /(100%\s*guaranteed|risk-free miracle|secret cure|doctors hate|clinically proven miracle|instant wealth)/i, check: "Demand named, peer-reviewed primary studies (DOI) rather than sweeping guarantees." }, { id: "consp-1", topic: "Unfalsifiable Self-Sealing Framing", branch: "Groups & Information", sev: "HIGH", rx: /(no documents exist.*proves|absence of evidence.*proves|shadow cabal|secret cabal|cover-up goes|they don['’]?t want you to know)/i, check: "Separate verifiable primary filings/logs from circular logic where missing proof is treated as proof." }, { id: "leap-1", topic: "Historical Non-Sequitur Leap", branch: "Groups & Information", sev: "MEDIUM", rx: /(mkultra.*proves|historical .* proves that today|just like .* therefore)/i, check: "Verify whether contemporary primary evidence links the historical event to the present claim." }, { id: "gas-1", topic: "Gaslighting & Reality Denial", branch: "Reality & Accountability", sev: "HIGH", rx: /(imagining things|overreacting|that never happened|you['’]?re crazy to think)/i, check: "Compare the denial directly against timestamps, archived snapshots, or primary logs." }, { id: "defl-1", topic: "Passive Deflection & Minimization", branch: "Reality & Accountability", sev: "MEDIUM", rx: /(mistakes were made|regret any misunderstanding|minor isolated incident|moving forward without dwelling)/i, check: "Ask who made the decision, what specifically occurred, and what concrete fix exists." }, { id: "dil-1", topic: "False Dilemma (Black-or-White Framing)", branch: "Rhetorical Manipulation", sev: "MEDIUM", rx: /(either you .* or you|you['’]?re either with us or|no middle ground|only two choices)/i, check: "List the practical third and fourth alternatives omitted by the author." }, { id: "anon-1", topic: "Weasel Words & Unnamed Authority", branch: "Source Credibility", sev: "MEDIUM", rx: /(top experts agree|many people are saying|sources close to .* say|scientists confirm without naming)/i, check: "Check whether specific authors, institutions, or datasets are named and verifiable." } ]; let customRules = []; try { const saved = JSON.parse(localStorage.getItem(CUSTOM_RULES_KEY) || "[]"); if (Array.isArray(saved)) customRules = saved; } catch (_) {} let sidebarOpen = false; let activeTab = "signals"; let highlightsOn = true; let lastScan = { sentences: [], findings: [], scannedAt: null }; let factResults = {}; function esc(s) { return String(s || "").replace(/[&<>"']/g, (c) => ({ "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }[c])); } function clearInlineHighlights() { document.querySelectorAll("mark[data-prowseir-eye-hi]").forEach((m) => { const parent = m.parentNode; if (!parent) return; parent.replaceChild(document.createTextNode(m.textContent || ""), m); parent.normalize(); }); } function allActiveRules() { const extra = customRules.map((r, i) => { try { return { id: "cust-" + i, topic: r.topic || "Custom Rule", branch: r.branch || "User Custom Rules", sev: r.sev === "HIGH" ? "HIGH" : "MEDIUM", rx: new RegExp(r.pattern, "i"), check: r.check || "Verify claim against primary sources." }; } catch (_) { return null; } }).filter(Boolean); return [...BUILTIN_RULES, ...extra]; } function extractPageBlocks() { const blocks = []; const els = document.querySelectorAll("p, li, blockquote, h1, h2, h3, article div"); const seen = new Set(); for (const el of els) { if (blocks.length >= 260) break; if (el.closest("[data-prowseir-ext]")) continue; if (el.children.length > 6 && el.tagName === "DIV") continue; const txt = String(el.innerText || el.textContent || "").replace(/\s+/g, " ").trim(); if (txt.length < 24 || txt.length > 900 || seen.has(txt)) continue; seen.add(txt); blocks.push({ el, text: txt }); } return blocks; } function scanCurrentPage() { clearInlineHighlights(); const blocks = extractPageBlocks(); const rules = allActiveRules(); const findings = []; let idx = 0; for (const b of blocks) { const sentences = b.text.split(/(?<=[.!?])\s+/).map((s) => s.trim()).filter((s) => s.length >= 20); for (const s of sentences) { for (const r of rules) { if (r.rx.test(s)) { const fid = "eye-f-" + (++idx); const isConsp = /cabal|cover-up|mkultra|proves|they don/i.test(s); findings.push({ id: fid, sentence: s, topic: r.topic, branch: r.branch, sev: r.sev, check: r.check, el: b.el, conspiracy: isConsp ? { forProof: /case no\.|doi|study|court|filing|audit|dataset/i.test(s) ? "Mentions a named record — verify the primary document directly." : "No primary document, dataset, or named witness cited in this sentence.", againstGap: "Uses self-sealing or speculative leap framing — verify independent corroboration." } : null }); if (highlightsOn && b.el && b.el.childNodes.length === 1 && b.el.firstChild.nodeType === 3) { const mark = document.createElement("mark"); mark.setAttribute("data-prowseir-eye-hi", fid); mark.style.cssText = r.sev === "HIGH" ? "background:rgba(255,85,85,0.24);color:inherit;border-bottom:2px solid #FF5555;padding:0 2px;" : "background:rgba(255,212,0,0.20);color:inherit;border-bottom:2px solid #FFD400;padding:0 2px;"; mark.textContent = b.el.textContent; b.el.textContent = ""; b.el.appendChild(mark); } break; } } } } lastScan = { sentences: blocks.map((x) => x.text), findings, scannedAt: new Date().toISOString() }; updateLauncher(); renderSidebar(); } async function factCheckClaim(fid, claimText) { factResults[fid] = { loading: true }; renderSidebar(); try { const resp = await fetch(FACTCHECK_API, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ claim: claimText }) }); const data = await resp.json(); factResults[fid] = resp.ok ? data : { error: data.error || "Fact-check unavailable." }; } catch (e) { factResults[fid] = { error: "Could not reach live /api/factcheck endpoint." }; } renderSidebar(); } // Shadow DOM UI const host = document.createElement("div"); host.setAttribute("data-prowseir-ext", (typeof prowseirExt !== "undefined" && prowseirExt.id) || "prowseir-all-seeing-eye"); const shadow = host.attachShadow({ mode: "open" }); (document.documentElement || document.body).appendChild(host); const style = document.createElement("style"); style.textContent = ` :host { all: initial; } * { box-sizing: border-box; font-family: 'JetBrains Mono', Consolas, monospace; } .eye-fab { position: fixed; right: 14px; top: 72px; z-index: 2147483643; background: #090B10; color: #FFD400; border: 2px solid #FFD400; padding: 6px 11px; font-size: 11px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.65); opacity: 0.88; } .eye-fab:hover { opacity: 1; background: #151924; } .eye-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(410px, 94vw); z-index: 2147483644; background: #0B0E16; color: #FFFFFF; border-left: 3px solid #FFD400; display: none; flex-direction: column; box-shadow: -10px 0 32px rgba(0,0,0,0.8); font-size: 12px; } .eye-panel.open { display: flex; } .eye-hdr { padding: 12px; background: #111521; border-bottom: 2px solid #FFFFFF; display: flex; justify-content: space-between; align-items: center; gap: 6px; } .eye-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #30384A; background: #0E121C; } .eye-tab { background: transparent; color: #B6BFCC; border: none; border-right: 1px solid #30384A; padding: 8px 4px; font-size: 10.5px; font-weight: 800; cursor: pointer; } .eye-tab.active { background: #FFD400; color: #000000; } .eye-body { flex: 1; overflow-y: auto; padding: 12px; line-height: 1.48; } .eye-btn { background: #141926; color: #FFFFFF; border: 1px solid #FFFFFF; padding: 5px 9px; font-size: 10.5px; font-weight: 700; cursor: pointer; } .eye-btn:hover { background: #FFFFFF; color: #090B10; } .eye-btn.acc { background: #FFD400; color: #000000; border-color: #FFD400; } .eye-btn.ok { border-color: #00E5A8; color: #00E5A8; } .eye-card { background: #111622; border: 1px solid #30384A; border-left: 3px solid #FFD400; padding: 10px; margin-bottom: 9px; } .eye-card.HIGH { border-left-color: #FF5555; } input, textarea { width: 100%; background: #090B10; color: #FFFFFF; border: 1px solid #3A455C; padding: 7px 8px; font-size: 11.5px; font-family: inherit; } `; const fab = document.createElement("button"); fab.type = "button"; fab.className = "eye-fab"; fab.title = "Toggle All-Seeing Eye Deception AI Sidebar (Alt+Shift+E)"; fab.textContent = "ALL-SEEING EYE [AI]"; const panel = document.createElement("aside"); panel.className = "eye-panel"; shadow.appendChild(style); shadow.appendChild(fab); shadow.appendChild(panel); function updateLauncher() { fab.textContent = lastScan.scannedAt ? `ALL-SEEING EYE [${lastScan.findings.length}]` : "ALL-SEEING EYE [AI]"; } function triggerDownload(text, filename) { const b = new Blob([text], { type: "text/plain;charset=utf-8" }); const a = document.createElement("a"); a.href = URL.createObjectURL(b); a.download = filename; a.click(); setTimeout(() => URL.revokeObjectURL(a.href), 1500); } let qaAnswerHtml = ""; function renderSidebar() { if (!sidebarOpen) return; let bodyHtml = ""; if (activeTab === "signals") { const highCount = lastScan.findings.filter((f) => f.sev === "HIGH").length; bodyHtml = `
${esc(location.hostname)} · ${lastScan.findings.length} signal(s) (${highCount} HIGH).${esc(location.hostname)}, All-Seeing Eye flagged ${lastScan.findings.length} signal(s) (${high} HIGH).