Hi, 2 quick questions: 1. I am copying some Javascript from Youtube for use on my own site is this OK? Namley the embed text box and customization part...So is this legal and OK ?? 2. To do this i need to extract certain parts of the javascript. So i have some code, how can i read the code to find out which functions it requires?
No, I would not say this is OK, especially since you're also asking what other code you would have to copy from them to make it work.
I copied about 300 lines off there Script, is this even legal? If anyone knows the answer to this please post!!
I would say not. Even if it were legal, it's frowned upon. It's nice to use other website's source as a reference while you code your own but simply copying and pasting it all isn't good unless it's from a site full of free examples.
Fair enough to be honest it can probably be done in a couple lines of JavaScript i'll have to get somebody to help me out with what i need. All i needed was the embed customization part. Where they have the textbox for you to copy and paste the embed code. And you can click a colour and it will automatically append the colour inside the textbox.