Код: Выделить всё
// ==UserScript==
// @name Change the color of visited links
// @description -
// @match *://*/*
// ==/UserScript==
function style(css) {
let 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);
}
function links(anylink, link, visited, hover, active) {
style(`
${anylink} { outline: solid 1px; }
${link} { color: blue; }
${visited} { color: fuchsia; }
${hover} { color: red; }
${active} { color: yellow; }
`);
}
links('a:any-link , a:any-link *',
'a:link , a:link *',
'a:visited , a:visited *',
'a:hover , a:hover *',
'a:active , a:active *'
);
Подробнее здесь: https://stackoverflow.com/questions/782 ... ry-website