Embed Tweets in an iframe - https://tf.rita.moe

Support x.com URLs

+2 -2
+2 -2
show.html
··· 67 67 let formattedDate = 'Unknown date' 68 68 const conversation = params['conversation'] 69 69 70 - const m = url.match(/^(https?:)?\/\/(www\.)?twitter\.com\/([^/]+)\//) 70 + const m = url.match(/^(?:https?:)?\/\/(?:www\.)?(?:twitter|x)\.com\/([^/]+)\//) 71 71 if (m && !authorUsername) { 72 - authorUsername = m[3] 72 + authorUsername = m[1] 73 73 } 74 74 75 75 if (authorUsername && authorUsername.substr(0, 1) !== '@') {