mft3k

Firefox Extension that adds a MST3K row of seats to the bottom of the browser
git clone Https://wehaveforgeathome.hates.computer/mft3k.git
Log | Files | Refs | LICENSE

content.js (493B)


      1 new function () {
      2   var css = "chrome://mft3k/skin/stylesheets/binding.css";
      3 
      4   // See: https://developer.mozilla.org/en/Using_the_Stylesheet_Service
      5   var styleSheetService = Cc["@mozilla.org/content/style-sheet-service;1"].
      6       getService(Ci.nsIStyleSheetService);
      7   var ios = Cc["@mozilla.org/network/io-service;1"].getService(Ci.nsIIOService);
      8   var sheet = ios.newURI(css, null, null);
      9   var type = styleSheetService.USER_SHEET;
     10   styleSheetService.loadAndRegisterSheet(sheet, type);
     11 }