-
Notifications
You must be signed in to change notification settings - Fork 3
Description
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.