Fixing Youtube on Opera

Yesterday evening I spend some time watching videos on YouTube. Everything worked fine as expected. But suddenly I got this error:

Not a single YouTube worked anymore. So I cleaned the cache, cookies etc (you never know). Still didn’t work. Tried on another Opera installation, still didn’t work. The only thing that worked were embedded YouTube-videos. So I started looking for a solution.

Luckily there is one, found here. It works by adding a user javascript.

  1. Store this script below somewhere. For example “C:\\Users\\YourUser\\Documents\\Opera\\YouTubeFix”
  2. Right-Click on the Youtube-Site, choose “Site preferences”.
  3. Switch to the Tab “Scripting” and point the ‘”User JavaScript Folder” to the location where the script is. For example “C:\\Users\\YourUser\\Documents\\Opera\\YouTubeFix”.
  4. Enjoy YouTube =)
// ==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

I really hope that YouTube fixes this issue soon.

Tagged on: ,