-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Add Bluesky to keep in sync with the latest text-formatter code.
Possible yaml:
name: Bluesky
host: bsky.app
homepage: https://bsky.app/
example: https://bsky.app/profile/jamesgunn.bsky.social/post/3l6kscjixz22q
extract: "!bsky\\.app/profile/(?'name'[A-Za-z0-9.]+)/post/(?'id'\\w+)!"
oembed:
endpoint: https://embed.bsky.app/oembed
scheme: [https://bsky.app/profile/{@name}/post/{@id](https://bsky.app/profile/%7B@name%7D/post/%7B@id)}
scrape:
- extract: "!\"did\":\\s*\"did:(?'did'[a-zA-Z0-9._:%-]+)\"!"
- match: "//"
- url: https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor={@name}
iframe:
width: "550"
height: "350"
src: [https://embed.bsky.app/embed/did:{@did}/app.bsky.feed.post/{@id](https://embed.bsky.app/embed/did:%7B@did%7D/app.bsky.feed.post/%7B@id)}
Or alternatively, exported from the latest text-formatter:
attributes:
embedder:
filterChain:
- "#regexp(/^(?:[-\\w]*\\.)*bsky\\.app$/)"
required: 1
url:
filterChain:
- urldecode
- "#regexp(/^at:\\/\\/[.:\\w]+\\/[.\\w]+\\/\\w+$/)"
required: 1
example:
- "https://bsky.app/profile/bsky.app/post/3kkrqzuydho2v"
- "https://bsky.app/profile/bnewbold.net/post/3kxjq2auebs2f"
extract:
- "#https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#"
helper: "s9e\\TextFormatter\\Plugins\\MediaEmbed\\Configurator\\SiteHelpers\\BlueskyHelper"
homepage: "https://bsky.app/"
host:
- "bsky.app"
iframe:
data-s9e-livepreview-ignore-attrs: style
height: 600
onload: "let c=new MessageChannel;c.port1.onmessage=e=>this.style.height=e.data+'px';this.contentWindow.postMessage('s9e:init','*',[c.port2])"
src: "https://s9e.github.io/iframe/2/bluesky.min.html#<xsl:value-of select=\"@url\"/>#<xsl:value-of select=\"@embedder\"/>"
width: 600
name: "Bluesky"
scrape:
- extract:
- "#https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#"
match:
- "#/profile/[^/]+/post/.#"
source: "https://embed.bsky.app/"
tags:
- socialReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels