forked from daisyUniverse/TwitFix
-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
68 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script> | ||
function androidOrIOS() { | ||
const userAgent = navigator.userAgent; | ||
if(/android/i.test(userAgent)){ | ||
return 'android'; | ||
} | ||
if(/iPad|iPhone|iPod/i.test(userAgent)){ | ||
return 'ios'; | ||
} | ||
return 'unknown'; | ||
} | ||
|
||
function redirect() { | ||
const os = androidOrIOS(); | ||
if(os === 'android'){ | ||
window.location.href = 'twitter://status?status_id=1674915987789950982'; | ||
window.location.href = 'https://twitter.com/pdxdylan/status/1674915987789950982' | ||
} | ||
if(os === 'ios'){ | ||
window.location.href = 'twitter://status?id=1674915987789950982'; | ||
setTimeout(() => { | ||
window.location.href = 'https://twitter.com/pdxdylan/status/1674915987789950982' | ||
}, 100); | ||
} | ||
} | ||
|
||
redirect(); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e427459
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What version does this need? I'm on 212 on iOS with no updates available and it doesn't work, it only shows the first image.
e427459
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexiayaa Seems to work fine on desktop and android, I wonder if it's an iOS app bug on discord's end.
Will probably revert this until that's fixed