User:Jorm/inthroughtheoutdoor.js

/* * inthroughtheoutdoor.js * * Detect if the body of a page contains an external link and highlight it so that it can be examined. * */ $( function {   // body.ns-0 div.mw-parser-output *:not(.reflist) a.external	let links = document.querySelectorAll('body.ns-0 div.mw-parser-output *:not(.reflist) a.external');	for (let l of links) {		l.style.backgroundColor = 'rgba(145, 0, 0, 0.25)';		l.style.color = '#222';		l.style.borderStyle = 'dashed';		l.style.borderColor = '#910000';		l.style.borderLeftWidth = 0;		l.style.borderRightWidth = 0;		l.style.borderTopWidth = '0.1em';		l.style.borderBottomWidth = '0.1em';	}

});