Board Thread:Support Requests - Getting Technical/@comment-1158325-20130523200933

I had a script that was working to stop embedded YouTube videos from autoplaying, but in the past couple days it stopped working (only on file page - still works for the youtube tag and such). I really dislike autoplay because of the way I browse and use tabs, so it would be great if I could get it working again. Looking at the code, I'm wondering if it's because of the "origin" parameter - does that prevent me from altering the iframe at all? If not, what do I need to do (or if so, what can I do) to disable autoplay?

Here is the script that was working for all embedded videos until recently: $("iframe[src^='http://www.youtube.com']").each(function{ var source = $(this).attr("src");  if (source.indexOf("autoplay=1") != -1) {    $(this).attr("src", source.replace("autoplay=1", "autoplay=0"));  } });  