From 34e60485b998c4918e399ef17870be3241d77dc9 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sun, 8 Nov 2026 00:43:57 +0900 Subject: [PATCH 1/4] feat(growth): add 17-locale universal Debate Me share landing --- share/debate-me/index.html | 48 +++++++ share/debate-me/landing.js | 166 +++++++++++++++++++++++ tests/debate-me-universal-share.test.mjs | 23 ++++ 3 files changed, 237 insertions(+) create mode 100644 share/debate-me/index.html create mode 100644 share/debate-me/landing.js create mode 100644 tests/debate-me-universal-share.test.mjs diff --git a/share/debate-me/index.html b/share/debate-me/index.html new file mode 100644 index 00000000..153da8cc --- /dev/null +++ b/share/debate-me/index.html @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + Debate Me – AI Debate Practice | SK APPS + + + + + +
+

Debate Me

+

Practice a three-round debate with an AI opponent, then get feedback on your arguments.

+ + Store availability may vary by region. +

Privacy policy

+

Explore other SK APPS

+
+ + diff --git a/share/debate-me/landing.js b/share/debate-me/landing.js new file mode 100644 index 00000000..81b00e10 --- /dev/null +++ b/share/debate-me/landing.js @@ -0,0 +1,166 @@ +'use strict'; +(() => { + // Navigation only. No device identifiers, debate content or app-open redirects. + const I18N = { + "en": { + "intro": "Practice a three-round debate with an AI opponent, then get feedback on your arguments.", + "android": "Get it on Google Play", + "ios": "Open in the App Store", + "availability": "Store availability may vary by region.", + "privacy": "Privacy policy", + "otherApps": "Explore other SK APPS" + }, + "ja": { + "intro": "AIを相手に3ラウンドのディベートを練習し、議論へのフィードバックを確認できます。", + "android": "Google Playで見る", + "ios": "App Storeで見る", + "availability": "ストアでの提供状況は地域によって異なります。", + "privacy": "プライバシーポリシー", + "otherApps": "他のSK APPSを見る" + }, + "zh": { + "intro": "与AI对手进行三轮辩论练习,并获得论点反馈。", + "android": "在Google Play查看", + "ios": "在App Store查看", + "availability": "商店提供情况可能因地区而异。", + "privacy": "隐私政策", + "otherApps": "探索其他SK APPS" + }, + "zh_TW": { + "intro": "與AI對手進行三回合辯論練習,並獲得論點回饋。", + "android": "在Google Play查看", + "ios": "在App Store查看", + "availability": "商店提供情況可能因地區而異。", + "privacy": "隱私權政策", + "otherApps": "探索其他SK APPS" + }, + "ko": { + "intro": "AI 상대와 3라운드 토론을 연습하고 주장에 대한 피드백을 받아보세요.", + "android": "Google Play에서 보기", + "ios": "App Store에서 보기", + "availability": "스토어 제공 여부는 지역에 따라 다릅니다.", + "privacy": "개인정보 처리방침", + "otherApps": "다른 SK APPS 보기" + }, + "es": { + "intro": "Practica un debate de tres rondas con una IA y recibe comentarios sobre tus argumentos.", + "android": "Ver en Google Play", + "ios": "Ver en App Store", + "availability": "La disponibilidad varía según la región.", + "privacy": "Política de privacidad", + "otherApps": "Explorar otras apps" + }, + "pt": { + "intro": "Pratique um debate de três rodadas com uma IA e receba comentários sobre seus argumentos.", + "android": "Ver no Google Play", + "ios": "Ver na App Store", + "availability": "A disponibilidade varia conforme a região.", + "privacy": "Política de privacidade", + "otherApps": "Explorar outros aplicativos" + }, + "fr": { + "intro": "Entraînez-vous à débattre en trois manches avec une IA et recevez des commentaires sur vos arguments.", + "android": "Voir sur Google Play", + "ios": "Voir sur l’App Store", + "availability": "La disponibilité varie selon la région.", + "privacy": "Politique de confidentialité", + "otherApps": "Explorer les autres apps" + }, + "de": { + "intro": "Übe eine Debatte über drei Runden mit einer KI und erhalte Feedback zu deinen Argumenten.", + "android": "Bei Google Play ansehen", + "ios": "Im App Store ansehen", + "availability": "Die Verfügbarkeit hängt von der Region ab.", + "privacy": "Datenschutzerklärung", + "otherApps": "Weitere SK APPS entdecken" + }, + "it": { + "intro": "Allenati in un dibattito di tre turni con un'IA e ricevi feedback sulle tue argomentazioni.", + "android": "Vedi su Google Play", + "ios": "Vedi su App Store", + "availability": "La disponibilità varia in base alla regione.", + "privacy": "Informativa sulla privacy", + "otherApps": "Scopri altre app" + }, + "ru": { + "intro": "Потренируйтесь в трёх раундах дебатов с ИИ и получите отзыв о своих аргументах.", + "android": "Открыть в Google Play", + "ios": "Открыть в App Store", + "availability": "Доступность зависит от региона.", + "privacy": "Политика конфиденциальности", + "otherApps": "Другие приложения" + }, + "ar": { + "intro": "تدرّب على مناظرة من ثلاث جولات مع الذكاء الاصطناعي واحصل على ملاحظات حول حججك.", + "android": "عرض في Google Play", + "ios": "عرض في App Store", + "availability": "قد يختلف التوفر حسب المنطقة.", + "privacy": "سياسة الخصوصية", + "otherApps": "استكشف تطبيقات أخرى" + }, + "th": { + "intro": "ฝึกโต้วาที 3 รอบกับ AI และรับคำแนะนำเกี่ยวกับเหตุผลของคุณ", + "android": "ดูใน Google Play", + "ios": "ดูใน App Store", + "availability": "การให้บริการอาจแตกต่างกันตามภูมิภาค", + "privacy": "นโยบายความเป็นส่วนตัว", + "otherApps": "สำรวจแอปอื่น" + }, + "id": { + "intro": "Latih debat tiga ronde melawan AI dan dapatkan masukan atas argumen Anda.", + "android": "Lihat di Google Play", + "ios": "Lihat di App Store", + "availability": "Ketersediaan dapat berbeda menurut wilayah.", + "privacy": "Kebijakan privasi", + "otherApps": "Jelajahi aplikasi lain" + }, + "tr": { + "intro": "Yapay zekâ ile üç turluk tartışma yap ve argümanların için geri bildirim al.", + "android": "Google Play'de görüntüle", + "ios": "App Store'da görüntüle", + "availability": "Mağaza erişimi bölgeye göre değişebilir.", + "privacy": "Gizlilik politikası", + "otherApps": "Diğer uygulamaları keşfet" + }, + "nl": { + "intro": "Oefen een debat van drie rondes met AI en krijg feedback op je argumenten.", + "android": "Bekijk in Google Play", + "ios": "Bekijk in de App Store", + "availability": "Beschikbaarheid verschilt per regio.", + "privacy": "Privacybeleid", + "otherApps": "Ontdek andere apps" + }, + "vi": { + "intro": "Luyện tranh luận ba vòng với AI và nhận phản hồi về lập luận của bạn.", + "android": "Xem trên Google Play", + "ios": "Xem trên App Store", + "availability": "Tính khả dụng có thể khác theo khu vực.", + "privacy": "Chính sách quyền riêng tư", + "otherApps": "Khám phá ứng dụng khác" + } +}; + const browser = (navigator.language || 'en').replace('-', '_'); + const lang = I18N[browser] ? browser : + (browser.toLowerCase().startsWith('zh_tw') || browser.toLowerCase().startsWith('zh_hk')) ? 'zh_TW' : + (I18N[browser.split('_')[0]] ? browser.split('_')[0] : 'en'); + document.documentElement.lang = lang.replace('_', '-'); + if (lang === 'ar') document.documentElement.dir = 'rtl'; + const strings = I18N[lang] || I18N.en; + document.querySelectorAll('[data-copy]').forEach((element) => { + const key = element.getAttribute('data-copy'); + if (Object.prototype.hasOwnProperty.call(strings, key)) { + element.textContent = strings[key]; + } + }); + + const allowedSources = new Set(['home', 'settings', 'result']); + const source = new URLSearchParams(location.search).get('src'); + const tag = allowedSources.has(source) ? source : 'generic'; + const play = document.getElementById('android'); + const url = new URL(play.href); + // Play Install Referrer may be useful for measurement if available, but + // no click here proves an install. No personal or arbitrary URL values. + url.searchParams.set('referrer', + 'utm_source=skapps&utm_medium=share&utm_campaign=debate_me_' + tag); + play.href = url.toString(); +})(); diff --git a/tests/debate-me-universal-share.test.mjs b/tests/debate-me-universal-share.test.mjs new file mode 100644 index 00000000..5b69b796 --- /dev/null +++ b/tests/debate-me-universal-share.test.mjs @@ -0,0 +1,23 @@ +import test from 'node:test'; +import assert from 'node:assert/strict'; +import {readFileSync} from 'node:fs'; +const read=p=>readFileSync(new URL('../'+p,import.meta.url),'utf8'); +const html=read('share/debate-me/index.html'); +const js=read('share/debate-me/landing.js'); +test('both real store destinations appear without invented redirects',()=>{ + assert.match(html,/play\.google\.com\/store\/apps\/details\?id=jp\.appdevelopsk\.debate_me/); + assert.match(html,/apps\.apple\.com\/app\/id6760968208/); + assert.match(html,/rel="canonical" href="https:\/\/appdevelopsk\.com\/share\/debate-me\/"/); + assert.doesNotMatch(html,/debate_id|device_id|argument_text/); + assert.doesNotMatch(js,/window\.location\s*=|location\.replace|innerHTML|fetch\(/); +}); +test('query parameters are restricted to non-personal campaign labels',()=>{ + assert.match(js,/new Set\(\['home', 'settings', 'result'\]\)/); + assert.match(js,/allowedSources\.has\(source\) \? source : 'generic'/); + assert.match(js,/utm_source=skapps&utm_medium=share&utm_campaign=debate_me_/); +}); +test('the visitor-facing landing page supports all 17 app locales',()=>{ + const locales=['en','ja','zh','zh_TW','ko','es','pt','fr','de','it','ru','ar','th','id','tr','nl','vi']; + for(const loc of locales)assert.match(js,new RegExp('"'+loc+'":')); + for(const field of ['intro','android','ios','availability','privacy','otherApps'])assert.match(js,new RegExp('"'+field+'":')); +}); From 27411c8c2880b2da07d26c464840b7eb70da558a Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sun, 8 Nov 2026 00:46:03 +0900 Subject: [PATCH 2/4] seo(growth): index universal Debate Me share landing --- sitemap.xml | 1 + tests/debate-me-universal-share.test.mjs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/sitemap.xml b/sitemap.xml index 8e1311f4..def2a4a0 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -320,4 +320,5 @@ https://appdevelopsk.com/guides/daily-habits/2026-11-07monthly0.7 https://appdevelopsk.com/guides/decision-helpers/2026-11-07monthly0.7 https://appdevelopsk.com/guides/ai-tools/2026-11-07monthly0.7 + https://appdevelopsk.com/share/debate-me/2026-11-08monthly0.7 diff --git a/tests/debate-me-universal-share.test.mjs b/tests/debate-me-universal-share.test.mjs index 5b69b796..e4cc2fe0 100644 --- a/tests/debate-me-universal-share.test.mjs +++ b/tests/debate-me-universal-share.test.mjs @@ -21,3 +21,10 @@ test('the visitor-facing landing page supports all 17 app locales',()=>{ for(const loc of locales)assert.match(js,new RegExp('"'+loc+'":')); for(const field of ['intro','android','ios','availability','privacy','otherApps'])assert.match(js,new RegExp('"'+field+'":')); }); + +test('indexable universal landing is listed once in the sitemap',()=>{ + const sitemap=read('sitemap.xml'); + const entry='https://appdevelopsk.com/share/debate-me/'; + assert.equal(sitemap.split(entry).length-1,1); + assert.match(html,/meta name="robots" content="index,follow"/); +}); From a08dca7e6c95b472e134e12b74bfe3e5e46775cc Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sun, 8 Nov 2026 08:12:31 +0900 Subject: [PATCH 3/4] fix(growth): hide unverified Debate Me iOS store CTA in all locales --- share/debate-me/index.html | 8 +++--- share/debate-me/landing.js | 34 ++++++++++++------------ tests/debate-me-universal-share.test.mjs | 16 +++++++++-- 3 files changed, 35 insertions(+), 23 deletions(-) diff --git a/share/debate-me/index.html b/share/debate-me/index.html index 153da8cc..137debb0 100644 --- a/share/debate-me/index.html +++ b/share/debate-me/index.html @@ -15,7 +15,7 @@ Debate Me – AI Debate Practice | SK APPS - + @@ -38,7 +38,7 @@

Debate Me

Practice a three-round debate with an AI opponent, then get feedback on your arguments.

Get it on Google Play - Open in the App Store +

iOS App Store availability is unverified.

Store availability may vary by region.

Privacy policy

diff --git a/share/debate-me/landing.js b/share/debate-me/landing.js index 81b00e10..ea391650 100644 --- a/share/debate-me/landing.js +++ b/share/debate-me/landing.js @@ -5,7 +5,7 @@ "en": { "intro": "Practice a three-round debate with an AI opponent, then get feedback on your arguments.", "android": "Get it on Google Play", - "ios": "Open in the App Store", + "ios": "iOS App Store availability has not been verified.", "availability": "Store availability may vary by region.", "privacy": "Privacy policy", "otherApps": "Explore other SK APPS" @@ -13,7 +13,7 @@ "ja": { "intro": "AIを相手に3ラウンドのディベートを練習し、議論へのフィードバックを確認できます。", "android": "Google Playで見る", - "ios": "App Storeで見る", + "ios": "iOS版のApp Store掲載は現在確認できていません。", "availability": "ストアでの提供状況は地域によって異なります。", "privacy": "プライバシーポリシー", "otherApps": "他のSK APPSを見る" @@ -21,7 +21,7 @@ "zh": { "intro": "与AI对手进行三轮辩论练习,并获得论点反馈。", "android": "在Google Play查看", - "ios": "在App Store查看", + "ios": "目前尚未确认 iOS App Store 的上架状态。", "availability": "商店提供情况可能因地区而异。", "privacy": "隐私政策", "otherApps": "探索其他SK APPS" @@ -29,7 +29,7 @@ "zh_TW": { "intro": "與AI對手進行三回合辯論練習,並獲得論點回饋。", "android": "在Google Play查看", - "ios": "在App Store查看", + "ios": "目前尚未確認 iOS App Store 的上架狀態。", "availability": "商店提供情況可能因地區而異。", "privacy": "隱私權政策", "otherApps": "探索其他SK APPS" @@ -37,7 +37,7 @@ "ko": { "intro": "AI 상대와 3라운드 토론을 연습하고 주장에 대한 피드백을 받아보세요.", "android": "Google Play에서 보기", - "ios": "App Store에서 보기", + "ios": "iOS App Store 등록 여부는 현재 확인되지 않았습니다.", "availability": "스토어 제공 여부는 지역에 따라 다릅니다.", "privacy": "개인정보 처리방침", "otherApps": "다른 SK APPS 보기" @@ -45,7 +45,7 @@ "es": { "intro": "Practica un debate de tres rondas con una IA y recibe comentarios sobre tus argumentos.", "android": "Ver en Google Play", - "ios": "Ver en App Store", + "ios": "La disponibilidad en App Store para iOS aún no está verificada.", "availability": "La disponibilidad varía según la región.", "privacy": "Política de privacidad", "otherApps": "Explorar otras apps" @@ -53,7 +53,7 @@ "pt": { "intro": "Pratique um debate de três rodadas com uma IA e receba comentários sobre seus argumentos.", "android": "Ver no Google Play", - "ios": "Ver na App Store", + "ios": "A disponibilidade na App Store para iOS ainda não foi verificada.", "availability": "A disponibilidade varia conforme a região.", "privacy": "Política de privacidade", "otherApps": "Explorar outros aplicativos" @@ -61,7 +61,7 @@ "fr": { "intro": "Entraînez-vous à débattre en trois manches avec une IA et recevez des commentaires sur vos arguments.", "android": "Voir sur Google Play", - "ios": "Voir sur l’App Store", + "ios": "La disponibilité sur l’App Store iOS n’a pas encore été vérifiée.", "availability": "La disponibilité varie selon la région.", "privacy": "Politique de confidentialité", "otherApps": "Explorer les autres apps" @@ -69,7 +69,7 @@ "de": { "intro": "Übe eine Debatte über drei Runden mit einer KI und erhalte Feedback zu deinen Argumenten.", "android": "Bei Google Play ansehen", - "ios": "Im App Store ansehen", + "ios": "Die Verfügbarkeit im iOS App Store ist noch nicht bestätigt.", "availability": "Die Verfügbarkeit hängt von der Region ab.", "privacy": "Datenschutzerklärung", "otherApps": "Weitere SK APPS entdecken" @@ -77,7 +77,7 @@ "it": { "intro": "Allenati in un dibattito di tre turni con un'IA e ricevi feedback sulle tue argomentazioni.", "android": "Vedi su Google Play", - "ios": "Vedi su App Store", + "ios": "La disponibilità nell'App Store iOS non è stata verificata.", "availability": "La disponibilità varia in base alla regione.", "privacy": "Informativa sulla privacy", "otherApps": "Scopri altre app" @@ -85,7 +85,7 @@ "ru": { "intro": "Потренируйтесь в трёх раундах дебатов с ИИ и получите отзыв о своих аргументах.", "android": "Открыть в Google Play", - "ios": "Открыть в App Store", + "ios": "Наличие приложения в iOS App Store пока не подтверждено.", "availability": "Доступность зависит от региона.", "privacy": "Политика конфиденциальности", "otherApps": "Другие приложения" @@ -93,7 +93,7 @@ "ar": { "intro": "تدرّب على مناظرة من ثلاث جولات مع الذكاء الاصطناعي واحصل على ملاحظات حول حججك.", "android": "عرض في Google Play", - "ios": "عرض في App Store", + "ios": "لم يتم التحقق بعد من توفر التطبيق على متجر App Store لنظام iOS.", "availability": "قد يختلف التوفر حسب المنطقة.", "privacy": "سياسة الخصوصية", "otherApps": "استكشف تطبيقات أخرى" @@ -101,7 +101,7 @@ "th": { "intro": "ฝึกโต้วาที 3 รอบกับ AI และรับคำแนะนำเกี่ยวกับเหตุผลของคุณ", "android": "ดูใน Google Play", - "ios": "ดูใน App Store", + "ios": "ยังไม่ได้ยืนยันการเปิดให้ดาวน์โหลดบน iOS App Store", "availability": "การให้บริการอาจแตกต่างกันตามภูมิภาค", "privacy": "นโยบายความเป็นส่วนตัว", "otherApps": "สำรวจแอปอื่น" @@ -109,7 +109,7 @@ "id": { "intro": "Latih debat tiga ronde melawan AI dan dapatkan masukan atas argumen Anda.", "android": "Lihat di Google Play", - "ios": "Lihat di App Store", + "ios": "Ketersediaan di iOS App Store belum terverifikasi.", "availability": "Ketersediaan dapat berbeda menurut wilayah.", "privacy": "Kebijakan privasi", "otherApps": "Jelajahi aplikasi lain" @@ -117,7 +117,7 @@ "tr": { "intro": "Yapay zekâ ile üç turluk tartışma yap ve argümanların için geri bildirim al.", "android": "Google Play'de görüntüle", - "ios": "App Store'da görüntüle", + "ios": "iOS App Store kullanılabilirliği henüz doğrulanmadı.", "availability": "Mağaza erişimi bölgeye göre değişebilir.", "privacy": "Gizlilik politikası", "otherApps": "Diğer uygulamaları keşfet" @@ -125,7 +125,7 @@ "nl": { "intro": "Oefen een debat van drie rondes met AI en krijg feedback op je argumenten.", "android": "Bekijk in Google Play", - "ios": "Bekijk in de App Store", + "ios": "Beschikbaarheid in de iOS App Store is nog niet bevestigd.", "availability": "Beschikbaarheid verschilt per regio.", "privacy": "Privacybeleid", "otherApps": "Ontdek andere apps" @@ -133,7 +133,7 @@ "vi": { "intro": "Luyện tranh luận ba vòng với AI và nhận phản hồi về lập luận của bạn.", "android": "Xem trên Google Play", - "ios": "Xem trên App Store", + "ios": "Chưa xác minh được ứng dụng có trên iOS App Store hay không.", "availability": "Tính khả dụng có thể khác theo khu vực.", "privacy": "Chính sách quyền riêng tư", "otherApps": "Khám phá ứng dụng khác" diff --git a/tests/debate-me-universal-share.test.mjs b/tests/debate-me-universal-share.test.mjs index e4cc2fe0..8bca8299 100644 --- a/tests/debate-me-universal-share.test.mjs +++ b/tests/debate-me-universal-share.test.mjs @@ -4,9 +4,11 @@ import {readFileSync} from 'node:fs'; const read=p=>readFileSync(new URL('../'+p,import.meta.url),'utf8'); const html=read('share/debate-me/index.html'); const js=read('share/debate-me/landing.js'); -test('both real store destinations appear without invented redirects',()=>{ +test('verified Play link is available but unverified iOS download is not promoted',()=>{ assert.match(html,/play\.google\.com\/store\/apps\/details\?id=jp\.appdevelopsk\.debate_me/); - assert.match(html,/apps\.apple\.com\/app\/id6760968208/); + assert.doesNotMatch(html,/apps\\.apple\\.com\\/app\\/id6760968208/); + assert.match(html,/

{ assert.equal(sitemap.split(entry).length-1,1); assert.match(html,/meta name="robots" content="index,follow"/); }); + +test('every locale describes iOS status honestly, not a confirmed download',()=>{ + const raw=js.match(/const I18N = (\\{[\\s\\S]*?\\});\\n const browser/); + assert.ok(raw); + const copy=JSON.parse(raw[1]); + for(const [lang,value] of Object.entries(copy)){ + assert.ok(value.ios && value.ios.length>8,lang); + assert.notEqual(value.ios,'Open in the App Store',lang); + } +}); From d3fb404f47dfd116aced6d676b4db09a20b13436 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sun, 8 Nov 2026 08:12:51 +0900 Subject: [PATCH 4/4] test(growth): correct JS regex literals in landing checks --- tests/debate-me-universal-share.test.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/debate-me-universal-share.test.mjs b/tests/debate-me-universal-share.test.mjs index 8bca8299..c9663199 100644 --- a/tests/debate-me-universal-share.test.mjs +++ b/tests/debate-me-universal-share.test.mjs @@ -6,7 +6,7 @@ const html=read('share/debate-me/index.html'); const js=read('share/debate-me/landing.js'); test('verified Play link is available but unverified iOS download is not promoted',()=>{ assert.match(html,/play\.google\.com\/store\/apps\/details\?id=jp\.appdevelopsk\.debate_me/); - assert.doesNotMatch(html,/apps\\.apple\\.com\\/app\\/id6760968208/); + assert.doesNotMatch(html,/apps\.apple\.com\/app\/id6760968208/); assert.match(html,/

{ }); test('every locale describes iOS status honestly, not a confirmed download',()=>{ - const raw=js.match(/const I18N = (\\{[\\s\\S]*?\\});\\n const browser/); + const raw=js.match(/const I18N = (\{[\s\S]*?\});\n const browser/); assert.ok(raw); const copy=JSON.parse(raw[1]); for(const [lang,value] of Object.entries(copy)){