Paste P6461

Random bit of code to replace GM_addStyle
ActivePublic

Authored by Anomie on Dec 13 2017, 6:40 PM.
var head = document.getElementsByTagName('head')[0];
var style = document.createElement('style');
style.setAttribute('type', 'text/css');
head.appendChild(style);
function addStyle( css ) {
style.sheet.insertRule( css, style.sheet.cssRules.length );
}
Anomie created this paste.Dec 13 2017, 6:40 PM