UserJS to fix NetFlix shrinking buttons
Wednesday, 26. April 2006, 02:54:21
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:
For my fellow NetFlix subscribers, enjoy!
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);
}
For my fellow NetFlix subscribers, enjoy!

