function get_twitter(url) { let pattern = /twitter.com\/(\w+).*/ let match = url.match(pattern); if (match) { let twitter_handle = match[1] let feed_url = `${base_url}/?action=display&bridge=Twitter&context=By+username&u=${twitter_handle}&format=` return get_all_types(feed_url) } return [] }