Again I searched the My Opera Community Forums for a Solution. I did end up finding a fix that worked for me on a post from user lewisje:
Here is the forum thread with the solution:
http://my.opera.com/community/forums/topic.dml?id=521491
This solution worked for me but it does seem more like a work around then a true solution, but it does work, so in the end it doesn't really matter.
On a possitive note, according to a twitter post from the Opera software people, it appears that they are aware of the problem and they are working on a solution. This is good news and hopefully we will have a better solution then this one in the near future....
Anyways....here is what I did to get YouTube videos to play in Opera 10.51...and again thanks to lewisje for sharing this solution.
How to fix the YouTube videos not playing problem in Opera 10.51:
1.) Go to http://lewisje.com/YoutubeProtectionRemover.js and copy the displayed text or save the .js file to your desktop. If you copied the displayed text, just paste it into any text editor such as Notepad and save the file as "YoutubeProtectionRemover.js....
Just in case the above link to the .js file breaks, here is the JavaScript code that you will need:
// ==UserScript==
// @name YoutubeProtectionRemover
// @include http://www.youtube.com/*
// @description Removes lame protection on YouTube
// @copyright 2010, Snap
// ==/UserScript==
window.opera.addEventListener('BeforeScript',function(ev){ev.element.text=ev.element.text.replace("yt.flash.update(swfConfig, forceUpdate);","");},false);
//end
// @name YoutubeProtectionRemover
// @include http://www.youtube.com/*
// @description Removes lame protection on YouTube
// @copyright 2010, Snap
// ==/UserScript==
window.opera.addEventListener('BeforeScript',function(ev){ev.element.text=ev.element.text.replace("yt.flash.update(swfConfig, forceUpdate);","");},false);
//end
2.) In Opera go to "Settings" then go to "Preferences". Under Preferences, click the "Advanced" tab. On the "Advanced" tab you will see a list of sub menu items along the left hand side, find "Content" and click on it.
3.) Once in the "Content" section you will see a "JavaScript Options" button, click on it and go to the bottom of the dialogue box and make note of the file location of your JavaScript folder for Opera. If the field is blank then you will have to create a JavaScript folder.
4.) To create a JavaScript folder just use Windows explorer and create a folder anywhere on your computer and name the folder anything you like (but just try to avoid spaces and special characters). For me I created a folder called "JavaScript" and I created it in my "Program Files (x86)\Opera\" directory. Wherever you create this folder just make note of where it is. After you created your JavaScript folder go back to Opera go to the JavaScript Options menu (located in Preferences - Advanced - Content - JavaScript Options) and select Choose under the "User JavaScript folder" and navigate to the JavaScript folder that you just created. Click "OK" and click OK again.
5.) Go back into Opera and close any and all open tabs and again go back into "Preferences" and choose "Advanced" and then select "Cookies". On the "Cookies" menu click on the "Manage Cookies" button. This will open the "Cookie Manager" window. Do a search for "YouTube" and delete all the cookies that appear. Click "Close" and then "OK".
6.) Shut down Opera
7.) Next take the "YoutubeProtectionRemover.js" file that we created in an earlier step and place it in the JavaScript folder that Opera uses for User JavaScript files (see steps 3 & 4).
8.) Reboot Opera and navigate to YouTube and with any luck the videos should work. If not try restarting Opera a couple of times. Failing that try setting the site mask as Internet Explorer.
To set Opera to mask as Internet Explore for YouTube right click on the YouTube page and select "Edit Site Preferences", then choose "Network". Then under "Browser identification" select "Mask as Internet Explorer), delete all the YouTube cookies and restart Opera.
22 comments: