Skip to content

Commit

Permalink
Update Twitter
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Friedman <maf675@gmail.com>
  • Loading branch information
iMattPro committed Jan 21, 2024
1 parent dbf3116 commit 45de951
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions collection/sites/twitter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Twitter
host: ["twitter.com","x.com"]
example: ["https://twitter.com/IJasonAlexander/statuses/526635414338023424","https://mobile.twitter.com/DerekTVShow/status/463372588690202624","https://twitter.com/#!/IJasonAlexander/status/526635414338023424"]
extract: "@(?:twitter|x)\\.com/(?:#!/|i/)?\\w+/(?:status(?:es)?|tweet)/(?'id'\\d+)@"
oembed:
endpoint: https://publish.twitter.com/oembed
scheme: https://twitter.com/user/status/{@id}
iframe:
data-s9e-livepreview-ignore-attrs: "style"
onload: "let c=new MessageChannel;c.port1.onmessage=e=>this.style.height=e.data+'px';this.contentWindow.postMessage('s9e:init','*',[c.port2])"
Expand Down

0 comments on commit 45de951

Please sign in to comment.