Skip to content

How init iframes? #7

@creativepl-php

Description

@creativepl-php

Hi, I use /2 method for init your iframes.
I use only twitter iframe and it work, but how use iframe for facebook, threads, instagram, tiktok? I mean first first iframe that calls end iframe.

For Twitter I use:
body.replace(/(https?:\/\/(?:mobile\.)?(twitter|x)\.com\/(?:#!\/)?(\w+)\/status(?:es)?\/(\d+))(\?[\w\-]\S+)?/, \n<iframe allowfullscreen="" loading="lazy" onload="var c=new MessageChannel;c.port1.onmessage=function(e){style.height=e.data+'px'};contentWindow.postMessage('s9e:init', window.location.origin + '/addons/[ADDON_NAME]/html/twitter.html',[c.port2])" scrolling="no" style="border:0;height:273px;max-width:520px;width:100%" src="` + window.location.origin + `/addons/[ADDON_NAME]/html/twitter.html#$4"></iframe>\n);

Which calls https://github.com/s9e/s9e.github.io/blob/master/iframe/2/twitter.html iframe. But Facebook, insta, threads, tiktok? Where find API or docs for default values, params? There is no examples on your site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions