-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
406 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
window.steps = [ | ||
{ | ||
"points": [ | ||
"Sign in to your account [here](https://steamcommunity.com/login/home)", | ||
"Go to [Account](https://store.steampowered.com/account) > Contact info", | ||
"Change email and remove phone number" | ||
] | ||
}, | ||
{ | ||
"points": [ | ||
"Secure the OGE if provided", | ||
"Find the account creation email", | ||
"Ensure the creation dates match" | ||
] | ||
}, | ||
{ | ||
"points": [ | ||
"Change the password [here](https://help.steampowered.com/en/wizard/HelpChangePassword)", | ||
"Make sure your password is secure", | ||
"Click [here](https://bitwarden.com/password-generator) to generate a password" | ||
] | ||
}, | ||
{ | ||
"points": [ | ||
"Go to the [Manage Steam Guard](https://store.steampowered.com/twofactor/manage) page", | ||
"Set up Steam Guard in the [mobile app](https://store.steampowered.com/twofactor/add_authenticator?authenticatortype=steam)", | ||
"Alternatively, set up SDA [here](https://github.com/Jessecar96/SteamDesktopAuthenticator/releases/tag/1.0.13)" | ||
] | ||
}, | ||
{ | ||
"points": [ | ||
"Download/save purchase history [here](https://store.steampowered.com/account/history)", | ||
"Download/save license history [here](https://store.steampowered.com/account/licenses)", | ||
"Find/save your SteamID64 [here](https://securing.guide/steam/id)" | ||
] | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
const vanity = document.getElementById('vanity'); | ||
var steamId = "00000000000000000"; | ||
var check = 0; | ||
|
||
async function updateSteamID() { | ||
try { | ||
check++ | ||
var prev = check; | ||
var wow = setTimeout(async () => { | ||
if (prev == check) { | ||
const steamAPI = await fetch("https://cors.faav.top/steam/" + vanity.value) | ||
if (steamAPI.status == 200) { | ||
const steamData = await steamAPI.json(); | ||
if (!steamData.error) { | ||
steamId = steamData.id; | ||
document.getElementById('steamid').innerHTML = "1" + String(steamData.id) + "1"; | ||
document.getElementById('steamid').style.opacity = '1'; | ||
} else { | ||
steamId = "00000000000000000"; | ||
document.getElementById('steamid').innerHTML = "1" + "00000000000000000" + "1"; | ||
document.getElementById('steamid').style.opacity = ''; | ||
} | ||
} | ||
} else { | ||
clearTimeout(wow) | ||
} | ||
}, 250) | ||
} catch { | ||
steamId = "00000000000000000"; | ||
document.getElementById('steamid').innerHTML = "1" + "00000000000000000" + "1"; | ||
document.getElementById('steamid').style.opacity = ''; | ||
} | ||
} | ||
|
||
vanity.addEventListener('input', async function () { | ||
if (vanity.value.length == 0 || vanity.value.length > 32 || vanity.value.length < 3) { | ||
steamId = "00000000000000000"; | ||
document.getElementById('steamid').innerHTML = "1" + "00000000000000000" + "1"; | ||
document.getElementById('steamid').style.opacity = ''; | ||
} else { | ||
await updateSteamID(); | ||
} | ||
}) | ||
|
||
function fallbackCopyTextToClipboard(text) { | ||
var textArea = document.createElement("textarea"); | ||
textArea.value = text; | ||
|
||
textArea.style.top = "0"; | ||
textArea.style.left = "0"; | ||
textArea.style.position = "fixed"; | ||
|
||
document.body.appendChild(textArea); | ||
textArea.focus(); | ||
textArea.select(); | ||
|
||
try { | ||
var successful = document.execCommand('copy'); | ||
var msg = successful ? 'successful' : 'unsuccessful'; | ||
console.log('Fallback: Copying text command was ' + msg); | ||
} catch (err) { | ||
console.error('Fallback: Oops, unable to copy', err); | ||
} | ||
|
||
document.body.removeChild(textArea); | ||
} | ||
|
||
function copyTextToClipboard(text) { | ||
if (!navigator.clipboard) { | ||
fallbackCopyTextToClipboard(text); | ||
return; | ||
} | ||
navigator.clipboard.writeText(text).then(function () { | ||
console.log('Async: Copying to clipboard was successful!'); | ||
}, function (err) { | ||
console.error('Async: Could not copy text: ', err); | ||
}); | ||
} | ||
|
||
document.getElementById('steamid').addEventListener('click', () => copyTextToClipboard(steamId)) | ||
|
||
tippy('#steamid', { | ||
content: "Copied!", | ||
trigger: 'click', | ||
animation: 'shift-away', | ||
hideOnClick: false, | ||
theme: 'translucent', | ||
offset: [0, -10], | ||
onShow(instance) { | ||
setTimeout(() => { | ||
instance.hide(); | ||
}, 500); | ||
} | ||
}); | ||
|
||
document.getElementById('steamid').innerHTML = "1" + "00000000000000000" + "1"; |
Oops, something went wrong.