Skip to content

Commit

Permalink
Merge pull request #102 from iMattPro/threads
Browse files Browse the repository at this point in the history
Update twitter
  • Loading branch information
iMattPro committed Jan 21, 2024
2 parents d08dfd4 + 983cb74 commit 5231431
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 8 additions & 0 deletions collection/sites/bunny.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Bunny Stream
host:
- iframe.mediadelivery.net
- video.bunnycdn.com
example: https://video.bunnycdn.com/play/759/eb1c4f77-0cda-46be-b47d-1118ad7c2ffe
extract: "!/(?:embed|play)/(?'video_library_id'\\d+)/(?'video_id'[-\\w]+)!"
iframe:
src: //iframe.mediadelivery.net/embed/{@video_library_id}/{@video_id}?autoplay=false
12 changes: 10 additions & 2 deletions collection/sites/twitter.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
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"]
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 5231431

Please sign in to comment.