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
Yes, Yahoo! stinks when it comes to web coding. Simply right-click any of their pages in Opera, select "Validate", and then watch the markup errors pile-up.
Anyhow, this latest script fixes their NFL and NCAA football play by play display in Opera.
I've updated my initial NetFlix UserJS script to version 2.0. This new version includes a fix for their shrinking form buttons. You can view or download the new version from here, or simply copy-and-paste the relevant code fix for the shrinking buttons here:
if (document &&
document.domain &&
document.domain.match(/^(www\.)?netflix\.com$/)) {
document.addEventListener("load",
function(e) {
var inps = document.getElementsByTagName("INPUT");
for (var n = 0, i; i = inps[ n ]; n++) {
if (!i.onmouseover && !i.onmouseout) continue;
var cn = i.className;
if ((cn != "bsub_primary") &&
(cn != "bsub_secondary")) continue;
i.className = "";
i.style.width = "auto";
i.className = cn;
}
}, false);
}
document.addEventListener("load",
function(e) {
if (!document.body) document.body = document.getElementsByTagName("body")[0];
if (!document.body) return;
if (!document.links) return;
for (var i = 0; i < document.links.length; i++) {
var href = document.links[ i ].getAttribute("href");
if (!href) continue;
if (!href.match(/\.pdf$/) &&
!href.match(/\.doc$/) &&
!href.match(/\.xls$/))
continue;
if (!document.blankIframeHandler) {
document.blankIframeHandler = document.createElement("iframe");
with (document.blankIframeHandler) {
setAttribute("src", "about:blank");
setAttribute("id", "blankIframeHandler");
setAttribute("name", "blankIframeHandler");
setAttribute("style", "display:none;visibility:hidden;");
}
document.body.appendChild(document.blankIframeHandler);
}
document.links[ i ].setAttribute("target", "blankIframeHandler");
}
}, false);
This User JavaScript creates a hidden inline frame (iframe element) on the current page, then targets all .pdf, .doc, and .xls links to open inside that hidden inline frame.
This technique seems fairly effective at opening file types with associated programs in Opera, such as .pdf files for Adobe Reader.
Yes, Yahoo! is really getting bad. I have more User JavaScript files to compensate for Yahoo! than any other website. Why is this? Who knows for sure, but they really have no excuse. After all, they've been in the Internet business longer than most, so they should know better...but they don't!
In the latest example, I often keep multiple live sporting events (hockey games) open at once. After about 15 minutes with Opera, Yahoo! starts serving-up stupid Error 999 pages. Have you ever seen them? The only way to get the page to serve-up its real contents is to continually reload the page URL until the error goes away. Hence, the latest addition to my UserJS collection for Yahoo!...