JSFiddle - React, Tailwind, and code Playground
JavaScript
Array.prototype.forEach.call(document.querySelectorAll('.post-message a'), function(el, i){
var href = el.href.match(/youtube\.com/);
if(href) console.log(href.input);
});
Array.prototype.forEach.call(document.querySelectorAll('.post-message a'), function(el, i){
var href = el.href.match(/youtube\.com/);
if(href) console.log(href.input);
});