UserJS to fix Yahoo! Football Play by Play
Monday, 9. October 2006, 00:58:14
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.
For example:
yahooNFL.js
To learn how to install this User JavaScript, visit UserJS.org
Enjoy.
Anyhow, this latest script fixes their NFL and NCAA football play by play display in Opera.
For example:
yahooNFL.js
if (document.domain.match(/^sports\.yahoo\.com$/) &&
window.location.href.match(/&page=plays/)) {
document.addEventListener("load",
function() {
var yspMainContent = document.getElementById("yspMainContent");
if (!yspMainContent) return;
yspMainContent.innerHTML = yspMainContent.innerHTML.replace(/\<thead\>/gi, '<table width="560" border="0" cellpadding="0" cellspacing="0"><thead>');
yspMainContent.innerHTML = yspMainContent.innerHTML.replace(/\<\/tbody\>/gi, '</tbody></table>');
}, 0);
}
To learn how to install this User JavaScript, visit UserJS.org
Enjoy.


TreeGo # 9. October 2006, 05:43