Search
 
SCRIPT & CODE EXAMPLE
 

CSS

tampermonkey custom css

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css.replace(/;/g, ' !important;');
    head.appendChild(style);
}
/*  this only works, if you use the function instead of GM_addStyle
 the output of this "addGlobalStyle('body { color: white; background-color: black; }');",

will be "body { color: white !important; background-color: black !important; }');" */


Comment

PREVIOUS NEXT
Code Example
Css :: deobfuscate css 
Css :: css shape-outside 
Css :: asp net css how to change text alignment of gridview column 
Css :: max width for tablet 
Css :: div style how to wrap around 
Css :: scss examples 
Css :: what to use instead of overflow overlay 
Css :: svg as background css 
Css :: css make all text center 
Css :: css reset code 
Css :: print zend db select query to string 
Css :: back button css 
Css :: tailwind css next 
Css :: css 16 9 ratio 
Css :: style input number css 
Css :: css grid 
Css :: cannot apply border radius to tr 
Css :: transform element to the left 
Css :: foreign key vs indexes 
Css :: flexbox froggy 
Css :: css hide select label 
Css :: Using a Python dict for a SQL INSERT statement 
Css :: abstände zwischen zeilen html 
Css :: how to use tailwind css in react js 
Css :: how to make grid css 
Css :: vertical sliders css 
Css :: 3d sphere 
Css :: fallback value in css 
Css :: css drop down 
Css :: animation in css 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =