User:TheDJ/inlinestylechecker.js

$(function {	let collection = document.querySelectorAll('.mw-parser-output [style]');	collection = [...collection];	collection.filter( a => { // Check for some exceptions if (			a.classList.contains( 'mw-kartographer-map' ) ||			a.classList.contains( 'thumbinner' )		) { return false; }		let stylesNames = [...a.style]; let filtered = stylesNames.filter( (s) => {			// more stuff to ignore, like pixel positioning used in maps etc			if ( (s === 'position' && a.style[s] === 'relative' ) || (s === 'top' || s === 'bottom' || s === 'left' || s === 'right' ) ) {			 return false;			}			return true;		}) if ( filtered.length === 0 ) { return false; }		return true; }).map( b => { // Add class so that I can visually identify them b.classList.add( 'mw-inline-styles' ); }); });