var childMenu = document.querySelectorAll('.custom-menu-primary.visible-phone .hs-menu-wrapper > ul .hs-menu-item.hs-menu-depth-1.hs-item-has-children > a'); Array.prototype.slice.call(childMenu).forEach(function (ele) { ele.insertAdjacentHTML('afterend', '<div class="child-trigger"></div>'); });
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