let imgs = document.querySelectorAll('img') imgs.forEach(e => { let src = e.getAttribute('src') if (src.includes('Content/ueditor/dialogs/attachment/fileTypeImages/icon_')){ e.style.display = 'none' } })