If it's not officially published in e.g. some coding tutorial, but I looked up the source of the website, is it appropriate to reference directly to the code on that website? (e.g.
Small edit #1: Just to mention, I have extensively edited the script, it is still similar, but not the same. It is about 100% longer, but there are similarities.