BLog cleanup html with js
Sun Sep 24 2023 16:04:18 GMT+0000 (Coordinated Universal Time)
Saved by
@sagarmaurya19
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
jQuery.noConflict();
$('.blog-post__body img').removeAttr('class')
$('.blog-post__body img').removeAttr('srcset')
$('.blog-post__body img').removeAttr('sizes')
$('.blog-post__body img').removeAttr('data-srcset')
$('.blog-post__body img').removeAttr('data-src')
$('.blog-post__body img').removeAttr('data-sizes')
$('.blog-post__body noscript').remove()
$('.post-body img').removeAttr('class')
$('.post-body img').removeAttr('srcset')
$('.post-body img').removeAttr('sizes')
$('.post-body img').removeAttr('data-srcset')
$('.post-body img').removeAttr('data-src')
$('.post-body img').removeAttr('data-sizes')
$('.post-body noscript').remove()
$(' h2.elementor-heading-title.elementor-size-default').removeAttr('class')
$(' h3.elementor-heading-title.elementor-size-default').removeAttr('class')
$(' h4.elementor-heading-title.elementor-size-default').removeAttr('class')
$('blockquote , blockquote *').removeAttr('class')
$('ul.elementor-icon-list-items , ul.elementor-icon-list-items *').removeAttr('class')
6:12
$('.elementor-widget-container span').removeAttr('data-ccp-props')
$('.elementor-widget-container span').removeAttr('data-contrast')
content_copyCOPY
Comments