Skip to content

Add hidden password-gated developer no-limit mode#7

Merged
CarlosA49 merged 1 commit into
mainfrom
claude/ai-humanizer-tool-DPX66
May 17, 2026
Merged

Add hidden password-gated developer no-limit mode#7
CarlosA49 merged 1 commit into
mainfrom
claude/ai-humanizer-tool-DPX66

Conversation

@CarlosA49

Copy link
Copy Markdown
Owner

Summary

Adds a hidden, password-gated developer "no limit" mode so you can use the humanizer without the trial word/token cap.

  • Activation (hidden, no visible button on the page):
    • Open the site with #dev in the URL → password prompt
    • or run __dev() in the browser console
    • or use the Owner tools panel → new "Developer" section toggle
  • Enter the developer password → SHA-256 compared to DEV_SHA256 in config (plaintext never stored, same trust model as the existing owner gate)
  • When on: allow() always true and consume() is a no-op, so the word/token limit is fully bypassed on that device only (localStorage flag hmz_dev)
  • Trial banner shows a clear "⚙ Developer mode — word/token limit off" state with a one-click Turn off
  • #dev is stripped from the URL after prompting; sw cache bumped to v4 so returning visitors pick up the new build

Notes / limitations

  • Same client-side trust level as OWNER_SHA256: it's a developer convenience, not a hardened paywall. A code-reader could set the localStorage flag manually; truly tamper-proof would require server enforcement via the existing Supabase backend (can add later if you want).
  • It does not touch synced accounts — purely a per-device override.

Test plan

  • Visit …/#dev, enter the dev password → banner shows Developer mode; humanize past 500 words with no paywall
  • Wrong password → "Incorrect password", limit still enforced
  • "Turn off" / re-visit #dev disables it; trial limit returns
  • Owner tools → Developer toggle reflects and flips state
  • Python tests still pass

https://claude.ai/code/session_015REKyF6JmJchTnZWoLth7Y


Generated by Claude Code

Visiting the site with #dev (or window.__dev() in console, or the
Owner tools panel) prompts for a password; on match it disables the
word/token limit on that device only. Password stored only as
DEV_SHA256 (never plaintext), mirroring the owner-gate trust model.
Banner shows a clear "Developer mode" state with a one-click off.
sw cache -> v4.

https://claude.ai/code/session_015REKyF6JmJchTnZWoLth7Y
@CarlosA49 CarlosA49 merged commit 26ee9e4 into main May 17, 2026
2 checks passed
CarlosA49 pushed a commit that referenced this pull request May 17, 2026
Swaps concise terms for the stiffer, more formal noun phrases the
Human-version uses ("the object" -> "the object of interest", "the
residents" -> "the individual inhabitants of those homes", "the
combined system" -> "the proposed combined system altogether", etc.).
Same deterministic, RNG-frugal contract as the rest of the rule.

https://claude.ai/code/session_01Mn6LEyWsGYEZJTWSZAcnqV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants