var el = document.getElementsByTagName('h1')[0]; var dummy = document.createElement('h2'); dummy.innerHTML = el.innerHTML; el.parentNode.replaceChild(dummy, el);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter