Thursday, April 15, 2010

YouTube not working in Opera 10.51 Part 2

Just over a month ago I posted a solution to the YouTube videos not working in the new Opera 10.51 browser. That solution seemed to work up until today, when for whatever unknown reason YouTube videos played on the YouTube page would not work in Opera.

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


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:

  1. Thank you so damn much
    ReplyDelete
  2. Script + masking as IE worked for me. Thank you so much.
    ReplyDelete
  3. Too much work...

    Can someone find an easier way to make youtube videos play in Opera..?

    Are we in 1982 using DOS to communicate? Surely someone can think of a solution the majority has access to? OR is the idea that everyone except the 1% nerds who wants to bother with this js move to IE and Firefox? Is that the idea?
    ReplyDelete
  4. SHORTER VERSION - That worked for me !

    I've created the 'YoutubeProtectionRemover.js' file [look in the above doc - '1)']. Then I've put it in (my documents/javascript folder)

    Associated it in the Opera options (Preferences - Advanced - Content - JavaScript Options)

    Then went to delete YouTube cookies - by using the search in (Preferences - Advanced - Cookies - Manage Cookies)

    Restarted the browser, and voila !
    ReplyDelete
  5. Kudos to Michael on Tech (:
    ReplyDelete
  6. thanks a lot man, this worked! <3
    ReplyDelete
  7. thanks bro. that worked.
    ReplyDelete
  8. Thanks a lot for this workaround, it worked fine for me. Also good to know a solution is being worked on.
    ReplyDelete
  9. thank you so much, was getting very frustrated
    works like a dream
    you're a star ;0)
    ReplyDelete
  10. thank you so much
    danke danke danke!!!
    ReplyDelete
  11. Thank you very much..worked like a charm! :)
    ReplyDelete
  12. Thank you everyone for the positive comments....though most of the credit goes to people I credited in the post as they found had the solution first.

    I just wanted to create a full set of instructions on how to implement the solution...

    Thanks again....and lets hope Opera comes up with an update soon as well....
    ReplyDelete
  13. It works though now when I type in a query in YouTube I no longer get a drop-down menu of options ? Anyone else get this ? Also, google website has gone weird in that when I search using google option in Opera I don't get the UK option to select - it's all gone very iffy. Any ideas ? Please.
    ReplyDelete
  14. @creeep who asks for "easy" solution, how bout someone comes to your place and fixes it for you? moron....

    note, it didnt work for me, maybe i dit somethin wrong with script, il try again, thnx anyway
    ReplyDelete
  15. YouTube HTML5 Video Player

    This is an opt-in experiment for HTML5 support on YouTube. If you are using a supported browser, you can choose to use the HTML5 player instead of the Flash player for most videos. Your comments will help us improve and perfect the mixtures that we're working on. So jump in, play around and send your feedback directly to the brains behind the scenes.


    Supported Browsers

    Right now, we support browsers that support both the video tag in HTML5 and the h.264 video codec. These include:
    Google Chrome
    Apple Safari (version 4+)
    Microsoft Internet Explorer with Google Chrome Frame installed
    ReplyDelete
  16. The script and masking as IE works for me, thanks.
    ReplyDelete
  17. Thanx for the script!

    p.s.: In case you don't know, how to allow user-scripts, check this link:
    http://my.opera.com/c69/blog/tutorial-how-to-enable-user-javascript-in-opera
    ReplyDelete
  18. I'm using Opera for a long time now and it's certainly not a big deal to do this but a web browser shouldn't force its users to perform geeky stuff like this, just to be able to watch YT videos.

    I know that for every change in the SW, there are so many users declaring this the decline of the application but I really feel that things are going massively downhill with Opera. It's not just YT, site compatiblility has not improved much in all these years and they rather play with layout losing more contrast and clarity each time instead of improving what this thing is for in first place - browsing the goddamn web. It's sad. Marketroids reign the Opera again. :(
    ReplyDelete
  19. Hello only i can't open YT in my opera
    Wer:10.53
    Compilation:3374
    ReplyDelete
  20. Its not a problem with Opera - it is a problem with the big guns (youtube, google, Apple, IE etc) working together to control access to "protected" content.

    How long before it is no longer possible to access youtube without paying a subscription? Soon, all online content is likely to be so tightly locked up that no browser will be able to access it unless a fee is paid.

    So much for the internet being "free" in any sense.

    Go Jerusalem.
    ReplyDelete
  21. thanks. work on opera 11.61
    ReplyDelete