Skip navigation.

Prepare!

Lee Harvey's Zombie Hit Parade

UserJS to fix NetFlix shrinking buttons

, , , ,

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);

}


For my fellow NetFlix subscribers, enjoy!

A simple cross-browser technique to block potentially harmful websitesUserJS to fix Disney Channel

Write a comment

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