// ==UserScript==
// @name pqhp.com - Fix videos
// @author Arve Bersvendsen 
// @namespace http://userjs.org/
// @description  Fixes bad Javascript code and browser sniffer code on
//			the "2005 Game Developer Conference" website
//			that prevents Opera from viewing the videos.
// @ujs:category site: fixes
// @ujs:published 2005-05-29 15:27
// @ujs:modified 2005-09-19 09:19
// @ujs:documentation http://userjs.org/scripts/site/fixes/pqhp-com-videofix 
// @ujs:download http://userjs.org/scripts/download/site/fixes/pqhp-com-videofix.js 
// @include http://www.pqhp.com/*
// @include http://*.pqhp.com/*
// ==/UserScript==


/* 
 * This script is granted to the public domain
 */

if (location.hostname.match(/pqhp.com$/i)) {
  window.opera.addEventListener("BeforeScript", function(e){
    e.element.text = e.element.text.replace(/document\.(img[0-9]*)\.src/, "document.getElementById('$1').src");
  },false);
}

