Skip to content

Instantly share code, notes, and snippets.

@sunscan
Forked from Haoose/quicksteamactivator.user.js
Last active September 20, 2017 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunscan/239886ca750eeeb8e5c1f6617783f900 to your computer and use it in GitHub Desktop.
Save sunscan/239886ca750eeeb8e5c1f6617783f900 to your computer and use it in GitHub Desktop.
Steam Key Quick Activator
javascript:(function()%7Bvar%20selection%20%3D%20window.getSelection().toString()%3Bif%20(selection)%20%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey%3Fkey%3D'%20%2B%20selection%2C%20'_blank')%3B%7D%20else%20%7Bresult%20%3D%20prompt('Insert%20Steam%20Key')%3Bif(result%20!%3D%20null)%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey%3Fkey%3D'%20%2B%20result%2C%20'_blank')%3B%7D%20else%20%7Bwindow.open('https%3A%2F%2Fstore.steampowered.com%2Faccount%2Fregisterkey'%2C%20'_blank')%3B%7D%7D%7D)()
javascript: function () {
var selection = window.getSelection().toString();
if (selection) {
window.open('https://store.steampowered.com/account/registerkey?key=' + selection, '_blank');
} else {
result = prompt('Insert Steam Key');
if(result != null){
window.open('https://store.steampowered.com/account/registerkey?key=' + result, '_blank');
} else {
window.open('https://store.steampowered.com/account/registerkey', '_blank');
}
}
}()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment