tangled
alpha
login
or
join now
rita.moe
/
twitframe
1
fork
atom
Embed Tweets in an iframe - https://tf.rita.moe
1
fork
atom
overview
issues
pulls
pipelines
Support x.com URLs
kdy.ch
8 months ago
534cbb9e
4775a55c
+2
-2
1 changed file
expand all
collapse all
unified
split
show.html
+2
-2
show.html
···
67
67
let formattedDate = 'Unknown date'
68
68
const conversation = params['conversation']
69
69
70
70
-
const m = url.match(/^(https?:)?\/\/(www\.)?twitter\.com\/([^/]+)\//)
70
70
+
const m = url.match(/^(?:https?:)?\/\/(?:www\.)?(?:twitter|x)\.com\/([^/]+)\//)
71
71
if (m && !authorUsername) {
72
72
-
authorUsername = m[3]
72
72
+
authorUsername = m[1]
73
73
}
74
74
75
75
if (authorUsername && authorUsername.substr(0, 1) !== '@') {