Skip to content

Commit

Permalink
Add x.com detection (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed Aug 29, 2023
1 parent 09cc01b commit 9545251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/shared.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function cleanLink(link, youtubeShortenEnabled = false, fixTwitterEnabled = fals
newLink.searchParams.delete('v')
}
// Use FixTwitter if enabled
if (oldLink.host.includes('twitter.com') && fixTwitterEnabled) {
if ((oldLink.host.includes('twitter.com') || oldLink.host.includes('x.com')) && fixTwitterEnabled) {
newLink.host = 'fxtwitter.com'
}
// Add Amazon affiliate code if enabled
Expand Down

0 comments on commit 9545251

Please sign in to comment.