Skip to content
Locked

need help setting up konghack script

5 posts

need help setting up konghack script

Posted Oct 1, 2012 5:50 pm

ok, i'm obviously new to setting up stuff like this, i know how to do basic hacking but not scripts it seems.

so yeah, the title here is the question, i followed the instructions down to step 5 then i can't figure out step 6. how do i edit the script to put my API key in? this would be the first time i've really done such a thing so i'm kinda lost here.

perhaps a better explanation here than the instructions on the userscripts page could help others with this as well.

RE: need help setting up konghack script

Posted Oct 1, 2012 7:11 pm

ok... that didn't answer my question as its not a matter of getting an error or not. i need to know how to edit the script and put my API key in it, thats my problem

RE: need help setting up konghack script

Posted Oct 2, 2012 11:13 pm

man this really needs to update the apikey on own. perhaps keep it in local storage instead of in the script.

heres my thought.
give the apikey textbox/div/whatevercontainer some unique ID.
add "http://konghack.com/ucp/hack_api_key.php" to the sites on the userscript.
if apikey is not set in localstorage, prompt to add apikey or whatevs
when the apikey page loads, the script scrapes the page and saves the apikey to local storage.
maybe a little div is shown that says "apikey successfully saved to userscript" or something

much easier than having users do it on own.

I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"

This topic is locked.