From 0e46e604be54ee8f97e5fc7163f58f916bd937d5 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Sat, 15 Feb 2025 23:32:33 -0500 Subject: [PATCH] update index.html: refine Steam lobby URL input and instructions for clarity and accuracy --- index.html | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 5ea6ba3..c560c6a 100644 --- a/index.html +++ b/index.html @@ -249,12 +249,12 @@

URL Converter Form

- +
@@ -266,17 +266,11 @@

How to use:

    -
  1. Paste any protocol URL (e.g., steam://, discord://, etc.)
  2. -
  3. Click "Convert" to generate a shareable HTTPS link
  4. -
  5. Use the copy button or click to copy the generated link
  6. -
  7. Share the link anywhere - when clicked, it will redirect to the original protocol URL
  8. +
  9. Enter your Steam lobby URL in the format: steam://joinlobby/123456/987654321
  10. +
  11. Click "Convert" to generate the shareable link
  12. +
  13. The generated link will always be in this format: https://steadirect.com/?url=steam://joinlobby/123456/987654321
  14. +
  15. Use the copy button to copy the link
-

Example: Convert steam://joinlobby/123456/987654321 to a link that works on Discord, social media, or any other platform!

- -

Advanced Usage: Direct URL Parameters

-

You can also create links directly by adding the URL parameter:

-

Format: https://steadirect.com/?url=steam://joinlobby/11590/1097752417465514

-

Just add ?url= followed by your protocol URL to create a shareable link instantly!

@@ -343,13 +337,13 @@ const input = document.getElementById('steamUrl'); const url = input.value.trim(); - if (!url.includes('://')) { - alert('Please enter a valid protocol URL (must include "://")'); + if (!url.match(/^steam:\/\/joinlobby\/\d+\/\d+$/)) { + alert('Please enter a valid Steam lobby URL in the format: steam://joinlobby/123456/987654321'); return; } - // Keep original URL format, just append it to our domain - let shareableUrl = window.location.origin + window.location.pathname + '?url=' + encodeURIComponent(url); + // Create the exact format URL + let shareableUrl = 'https://steadirect.com/?url=' + url; const resultDiv = document.getElementById('result'); resultDiv.innerHTML = `

Your Shareable Link: