From 3675a720da0e2f2726b2d3285ab60a2581aca5d4 Mon Sep 17 00:00:00 2001 From: Harry NG Date: Thu, 18 Sep 2025 15:53:38 +0700 Subject: [PATCH] chore: update url --- web/assets/js/subscription.js | 12 ++++++++++++ web/html/subscription.html | 11 ++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/web/assets/js/subscription.js b/web/assets/js/subscription.js index e5916dc4..2c731be3 100644 --- a/web/assets/js/subscription.js +++ b/web/assets/js/subscription.js @@ -127,6 +127,18 @@ const base64Url = btoa(rawUrl); const remark = encodeURIComponent(this.app.sId || 'Subscription'); return `shadowrocket://add/sub/${base64Url}?remark=${remark}`; + }, + v2boxUrl() { + return `v2box://install-sub?url=${encodeURIComponent(this.app.subUrl)}&name=${encodeURIComponent(this.app.sId)}`; + }, + streisandUrl() { + return `streisand://import/${encodeURIComponent(this.app.subUrl)}`; + }, + v2raytunUrl() { + return this.app.subUrl; + }, + npvtunUrl() { + return this.app.subUrl; } }, methods: { diff --git a/web/html/subscription.html b/web/html/subscription.html index 5d254330..ee72b83c 100644 --- a/web/html/subscription.html +++ b/web/html/subscription.html @@ -235,14 +235,15 @@ Shadowrocket V2Box + @click="open(v2boxUrl)">V2Box Streisand + @click="open(streisandUrl)">Streisand V2RayTun + @click="copy(v2raytunUrl)">V2RayTun NPV - Tunnel + @click="copy(npvtunUrl)">NPV + Tunnel +