Subscription URL: [subscription_url]

// Function to extract name from the configuration URL function extractNameFromConfigURL(url) { const namePattern = /#([^#]*)/; const match = url.match(namePattern); if (match) { const name = decodeURIComponent(match[1]); return name; } else if (url.startsWith("vmess://")) { const encodedString = url.replace("vmess://", ""); const decodedString = atob(encodedString); return JSON.parse(decodedString).ps; } else { return null; // Return null if the pattern doesn't match } } // Get the subscription URL (full URL) from the shortcode const fullUrl = ""; // Extract the name from the URL const extractedName = extractNameFromConfigURL(fullUrl) || 'Sub'; // Set the hrefs for the different apps function setHrefs() { document.getElementById("ios-streisand").href = `streisand://import/${fullUrl}`; document.getElementById("ios-v2box").href = `v2box://install-sub?url=${fullUrl}&name=${extractedName}`; document.getElementById("android-v2rayng").href = `v2rayng://install-config?url=${fullUrl}`; document.getElementById("ios-singbox").href = `sing-box://import-remote-profile?url=${fullUrl}#${extractedName}`; document.getElementById("android-singbox").href = `sing-box://import-remote-profile?url=${fullUrl}#${extractedName}`; document.getElementById("android-nekobox").href = `sn://subscription?url=${fullUrl}&name=${extractedName}`; document.getElementById("windows-clashverge").href = `clash://install-config?url=${fullUrl}`; } document.addEventListener('DOMContentLoaded', setHrefs);

Remaining Days: [remaining_days]

Remaining Days Suffix: [remaining_days_suffix]

Username: [username]

Subscription URL: [subscription_url]

Data Limit: [data_limit]

Used Traffic: [used_traffic]

Expiration Date: [expire]

Status: [status]

Data Limit Reset Strategy: [data_limit_reset_strategy]