I was hoping someone might make a greasemonkey/user script to facillitate the same thing. Where you click on the YVID button and you can put in either
the video tag or the url, and it would detect the difference and return the correct value.
Same thing as you've done, but inside the web page.
greasemonkey angle, one does it one way, the other does it another, and never the twain shall meet.
I looked at the cript ChaoticDisorder made and was thoroughly impressed and dismayed that what I had thought was reasonable on my part with the old
format, was actually really bad compared to a properly thought out bit of code.
I can't code things like that. I can glue code together.
But it's a good start to tweak. THere are a few things to tweak in that script, and to add. I want to add a resize: true; value to the css that holds
the postcontainer and the post itself, so I can drag the post out - or even just have it fit the actual width of my monitor. I did it with firefox
element inspector and it works well, I don't know why its not that way by default. So much unused space.
Ahhh... but you're making it too easy for people mate.
I still rely on the old fingers and brain to type the [yvid ] video tag [/yvid ] tags.. Now you'll have to support this, and imagine all the U2U's
from people asking if you're stealing their informations and credit cards and social security numbers, with your devious ATS youtube helper
*even with source lol !! *
Intersting that you check for the string being empty before checking it's length with len() as opposed to string.length which has often casued my
transition from vb6 to .net a headache of unknown proportions..
.net is just apple sauce on old turkey sandwiches.. with a hint of mint.
(look at moi, spaghetti code everywhere!!)
edit on 13-9-2013 by winofiend because: (no reason given)
One thing I jus tnoticed, it appears if there are more parameters in the URL than expected it can still give the wrong tags to embed. I tested it with
which was found using google search and may be how someone finds a video.
It returned the part after the &feature= section. So I remve the &list parameter as I am unsure the last time I actually saw a list from a simple
search, and it may be very rare, and it did find the correct video tag.
sorry to nit pick. But you can imagine someone will encounter a problem and hassle you endlessly.. It's the bane of the person coding...
I'm off.. damn I have to start a presentation and now you've gotten me all interested in coding things again.
edit on 13-9-2013 by
winofiend because: (no reason given)