Login inside Facebook's browser, a home page that shows at once, visitor statistics in the privacy notice
CI / test (push) Successful in 3m21s
CI / build (push) Skipped
CI / deploy (push) Skipped

- Login page: in Facebook's, Messenger's, Instagram's and other apps' built-in
  browsers Google refuses to sign in, so the page says so, puts the e-mail
  form first, hides the Google button and offers the way out (Chrome on
  Android, the app's menu on an iPhone, copying the link).
- Home page: the heading, text and buttons no longer fade in over 1.5 s.
- Privacy notice (HU/EN): Cloudflare Web Analytics, cookieless, totals only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-27 06:37:06 +00:00
co-authored by Claude Opus 5.5
parent de629a068d
commit 50c29e4595
8 changed files with 198 additions and 40 deletions
+35
View File
@@ -0,0 +1,35 @@
/**
* The browsers built into apps: Facebook, Messenger, Instagram, TikTok, and
* other Android apps that show pages in their own window (WebView). Google
* does not allow signing in with a Google account in them (its error page
* says "disallowed_useragent"), so the login page offers the e-mail login
* and a way out to the phone's own browser instead.
*/
export interface InAppBrowser {
/** The app's name for the text ("Facebook"); null for an unknown app. */
app: string | null;
android: boolean;
}
export function inAppBrowser(userAgent: string): InAppBrowser | null {
const android = /Android/i.test(userAgent);
let app: string | null = null;
if (/Instagram/i.test(userAgent)) app = "Instagram";
else if (/MessengerForiOS|Orca-Android|FB_IAB\/MESSENGER/i.test(userAgent)) app = "Messenger";
else if (/FBAN|FBAV|FB_IAB|FBIOS|FB4A/.test(userAgent)) app = "Facebook";
else if (/TikTok|musical_ly|Bytedance/i.test(userAgent)) app = "TikTok";
if (app) return { app, android };
// Any other Android app's window: "; wv)" in the browser's name.
if (android && /; wv\)/.test(userAgent)) return { app: null, android };
return null;
}
/**
* A link that opens the page in Chrome on Android, out of the app's window.
* Without Chrome the phone falls back to the same page.
*/
export function chromeIntent(url: string): string {
const u = new URL(url);
const fallback = encodeURIComponent(url);
return `intent://${u.host}${u.pathname}${u.search}#Intent;scheme=${u.protocol.replace(":", "")};package=com.android.chrome;S.browser_fallback_url=${fallback};end`;
}
+2 -2
View File
@@ -18,8 +18,8 @@ export const ARBITRATION_BOARD = {
web: "https://panaszrendezes.hu",
};
export const PRIVACY_UPDATED = "2026. november 26.";
export const PRIVACY_UPDATED_EN = "26 November 2026";
export const PRIVACY_UPDATED = "2026. november 27.";
export const PRIVACY_UPDATED_EN = "27 November 2026";
/** The terms (ÁSZF) in force; the backend records this version with every purchase (TERMS_VERSION). */
export const TERMS_UPDATED = "2026. november 26.";