Forked from Haoose/quicksteamactivator.user.js
Last active
September 20, 2017 09:43
-
-
Save sunscan/239886ca750eeeb8e5c1f6617783f900 to your computer and use it in GitHub Desktop.
Steam Key Quick Activator
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
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)() |
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
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