Skip to content

Commit

Permalink
Updated Telegram iframe v3
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Jun 25, 2024
1 parent 029a13a commit 91f20c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions iframe/3/telegram.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<title>Content from Telegram</title>
<link rel="preconnect" crossorigin="" href="//telegram.org">
<body style="margin:0">
<script>
((hash, window) =>
Expand Down
2 changes: 1 addition & 1 deletion iframe/3/telegram.min.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><title>Content from Telegram</title><body style=margin:0><script>((a,b)=>{const g=/theme=dark/.test(a)||/theme=auto/.test(a)&&b.matchMedia('(prefers-color-scheme:dark)').matches;b.onload=()=>{document.body.innerHTML='<iframe loading=eager scrolling=no src=//t.me/'+a.replace(/#.*|[^\w\/]/g,'')+'?embed=1'+(g?'&dark=1':'')+' style=border:0;height:100vh;width:100%></iframe>'};let c,d;b.onmessage=e=>{let f=/"height":(\d+)/.exec(e.data);if(f)c=+f[1];else if('s9e:init:3'===e.data)d=e.ports[0];else return;c&&d&&d.postMessage({method:'resize',height:c})}})(location.hash.substring(1),window)</script>
<!DOCTYPE html><title>Content from Telegram</title><link rel=preconnect crossorigin href=//telegram.org><body style=margin:0><script>((a,b)=>{const g=/theme=dark/.test(a)||/theme=auto/.test(a)&&b.matchMedia('(prefers-color-scheme:dark)').matches;b.onload=()=>{document.body.innerHTML='<iframe loading=eager scrolling=no src=//t.me/'+a.replace(/#.*|[^\w\/]/g,'')+'?embed=1'+(g?'&dark=1':'')+' style=border:0;height:100vh;width:100%></iframe>'};let c,d;b.onmessage=e=>{let f=/"height":(\d+)/.exec(e.data);if(f)c=+f[1];else if('s9e:init:3'===e.data)d=e.ports[0];else return;c&&d&&d.postMessage({method:'resize',height:c})}})(location.hash.substring(1),window)</script>

0 comments on commit 91f20c9

Please sign in to comment.