Skip navigation.

Prepare!

Lee Harvey's Zombie Hit Parade

UserJS to fix NFL.com RealPlayer video

, , , , , ,

For whatever reason, Opera disallows calling the DoStop(), DoPlay(), etc methods of the RealPlayer plug-in on nfl.com -- perhaps for security reasons, since the script which injects the tag is located on images.nfl.com, but the homepage is on www.nfl.com.

Anyhow, this latest script provides a work-around by rewriting the HTML inside the tag hosting the RealPlayer plug-in. In essence, it simply sets the autoplay attribute to true, which allows the video to play when users click a video link.

Download/view the nfl.js script
if (document.domain.match(/^(www\.|images\.)?nfl\.com$/)) {
  window.opera.defineMagicFunction("goMovie",
    function (a,b,selection) {
      var videoplayer = document.getElementById("videoplayer");
      if (!videoplayer) return;
      videoplayer.innerHTML = '<PARAM name="autostart" value="true"/> \
        <PARAM name="controls" value="imagewindow"/> \
        <PARAM name="src" value="' + selection + '"/> \
        <PARAM name="console" value="cons"/> \
        <PARAM name="nologo" value="true"/> \
        <EMBED name="videoplayer" type="audio/x-pn-realaudio-plugin" width="240" height="180" nologo="true" src="' + selection + '" controls="imagewindow" autostart="true" console="cons"/>';
    });
}

To learn how to install this User JavaScript, visit UserJS.org

Enjoy.

UserJS to fix Yahoo! Football Play by PlayOpera.exe registry access at startup

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.