В GreaseMonkey вы можете добавить несколько свойств CSS к нескольким элементам, например:
Код: Выделить всё
GM_addStyle("body { color: white; background-color: black; } img { border: 0; }");
Код: Выделить всё
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);
}
addGlobalStyle('body { color: white; background-color: black; }');
Подробнее здесь: https://stackoverflow.com/questions/236 ... mpermonkey
Мобильная версия