Advanced detection with custom CSS Selector