How To Edit CSS within TamperMonkey (Edit Sites CSS) 06-05-2016, 05:00 PM
#1
Hi guys,
I released a tiny script that makes the text easier to read on here, I did this using TampMonkey and a little script that really does work!
Add this Function to your Script:
This will make it easier to add CSS in the future, then when you'd like to add CSS, add this code:
This is the code I used to make the text easier to read, hope you guys learned something
-- Peace
I released a tiny script that makes the text easier to read on here, I did this using TampMonkey and a little script that really does work!
Add this Function to your Script:
Code:
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;
head.appendChild(style);
}
Code:
addGlobalStyle('body { color: white; }');
This is the code I used to make the text easier to read, hope you guys learned something
-- Peace
PHP, CSS & HTML Web Developer!
Skype: FluxCoder