Skip to content

Fix list loading through Ultraviolet and Scramjet proxies - #33

Open
yourworstnightmare1 wants to merge 4 commits into
mainfrom
cursor/fix-uv-scramjet-proxy-load-847a
Open

Fix list loading through Ultraviolet and Scramjet proxies#33
yourworstnightmare1 wants to merge 4 commits into
mainfrom
cursor/fix-uv-scramjet-proxy-load-847a

Conversation

@yourworstnightmare1

@yourworstnightmare1 yourworstnightmare1 commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Most people open this site through school web proxies such as Ultraviolet and Scramjet. Those tools rewrite every script and fetch() URL.

Rebased onto main after #32 merged.

Latest: popular links + Active Users on Scramjet

Those two widgets still depended on Firebase (gstatic scripts + Realtime Database). Scramjet often hangs those loads, so:

  • Popular links now render on the main list from meta.popular_links (no Firebase, no view-swap that hid the section).
  • Active Users uses the Cloudflare Worker live-session count (POST /api/presence-ping returns { active }, plus GET /api/presence-active). Presence pings from UV/Scramjet go to workers.dev instead of the proxy origin.
  • Firebase SDK script loads time out after 8s so boot does not wait forever.

Earlier in this PR

  • Fetch data.json with relative URLs first.
  • Local DOMPurify / Chart.js (no CDN SRI).
  • DOMParser fallback when DOMPurify is missing.
  • Lazy-load Firebase after the list renders.
  • Async chunked expansion of compact list rows.
  • Red Important notices banner about proxy access issues.
Open in Web Open in Cursor 

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Deploying ixl-backend-4298df-production with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0a3f69
Status: ✅  Deploy successful!
Preview URL: https://2af2d72f.ixl-backend-4298df-production.pages.dev
Branch Preview URL: https://cursor-fix-uv-scramjet-proxy.ixl-backend-4298df-production.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Deploying classlink-login-saml2-9u32ghr9248yg with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0a3f69
Status: ✅  Deploy successful!
Preview URL: https://c616a13d.classlink-login-saml2-9u32ghr9248yg.pages.dev
Branch Preview URL: https://cursor-fix-uv-scramjet-proxy.classlink-login-saml2-9u32ghr9248yg.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
proxy-list b0a3f69 Commit Preview URL

Branch Preview URL
Aug 18 2026, 09:21 PM

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
clever-iwbh3-learning-extension b0a3f69 Commit Preview URL

Branch Preview URL
Aug 18 2026, 09:21 PM

@yourworstnightmare1
yourworstnightmare1 marked this pull request as ready for review August 18, 2026 15:24
When DOMPurify failed to load inside Scramjet/Ultraviolet, setHtml
cleared the table and left a blank gray panel. Fall back to trusted
DOMParser markup for self-generated HTML.

Add a Popular links sidebar view backed by meta.popular_links so
curated links render without Firebase. Expand compact list rows
asynchronously to keep UV/Scramjet responsive. Vendor Chart.js locally
and lazy-load Firebase on the statistics page with proxy-safe asset URLs.

Co-authored-by: yourworstnightmare_ <yourworstnightmare1@users.noreply.github.com>
@cursor
cursor Bot force-pushed the cursor/fix-uv-scramjet-proxy-load-847a branch from 291468b to 6dfb92e Compare August 18, 2026 15:26
cursoragent and others added 3 commits August 18, 2026 17:14
Popular links stayed hidden unless a sidebar view swap ran, and Most
opened plus Active Users waited on gstatic Firebase scripts that hang
inside Scramjet. Render curated popular_links on the main list, send
presence pings to the Worker from proxied hosts, and display the
Worker live-session count even when Realtime Database never loads.

Co-authored-by: yourworstnightmare_ <yourworstnightmare1@users.noreply.github.com>
Co-authored-by: yourworstnightmare_ <yourworstnightmare1@users.noreply.github.com>
…ronment-82e9

Set up Cloud Agent dev environment (AGENTS.md + install script)
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