File indexing completed on 2024-05-19 05:01:19
0001 var content = '%2'; 0002 var style = document.getElementById('%1'); 0003 //If `content` is not empty, use it as the content of the style element, creating the element if needed 0004 //If `content` is empty, it means that no custom stylesheet should be used, so remove the element 0005 if (content.length > 0) { 0006 if (!style) { 0007 style = document.createElement("style"); 0008 style.id = '%1'; 0009 document.head.appendChild(style); 0010 } 0011 //Set the new stylesheet 0012 style.innerText = '%2'; 0013 } else if (style) { 0014 style.remove(); 0015 }