Skip to content

Commit

Permalink
Updated XenForo iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Mar 13, 2024
1 parent 9dd7a57 commit 8887083
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion iframe/2/xenforo.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
];

const iframe = /** @type {!HTMLIFrameElement} */ (document.createElement('iframe'));
iframe.allow = 'allow-scripts allow-top-navigation-by-user-activation';
iframe.scrolling = 'no';
iframe.onload = () => iframe.contentWindow.postMessage(
{
Expand Down
2 changes: 1 addition & 1 deletion iframe/2/xenforo.min.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><title>Content from XenForo</title><style>body{margin:0}iframe{border:0;height:100vh;width:100%}</style><script>(d=>{const e=[['post-',/^#(https:\/\/[-.\/\w]+?\/)threads\/\d+\/post-(\d+)/],['profile_post-',/^#(https:\/\/[-.\/\w]+?\/)profile-posts\/(\d+)/],['resource-',/^#(https:\/\/[-.\/\w]+?\/)resources\/(\d+)/],['thread-',/^#(https:\/\/[-.\/\w]+?\/)threads\/(?:[-\w]+\.)?(\d+)/],['xfmg_album-',/^#(https:\/\/[-.\/\w]+?\/)media\/albums\/(\d+)/],['',/^#(https:\/\/[-.\/\w]+?\/)embed\.php\?content=([-\w]+)/]],b=d.createElement('iframe');b.allow='allow-scripts allow-top-navigation-by-user-activation';b.scrolling='no';b.onload=()=>b.contentWindow.postMessage({id:0,type:'getHeight'},'*');let c;window.onmessage=a=>{a.stopImmediatePropagation();if('s9e:init'!==a.data||c)a.source===b.contentWindow&&a.data.height&&c.postMessage(+a.data.height);else{c=a.ports[0];for(const [f,g]of e)if(a=g.exec(location.hash)){b.src=a[1]+'embed.php?content='+f+a[2];d.body.appendChild(b);break}}}})(document)</script>
<!DOCTYPE html><title>Content from XenForo</title><style>body{margin:0}iframe{border:0;height:100vh;width:100%}</style><script>(d=>{const e=[['post-',/^#(https:\/\/[-.\/\w]+?\/)threads\/\d+\/post-(\d+)/],['profile_post-',/^#(https:\/\/[-.\/\w]+?\/)profile-posts\/(\d+)/],['resource-',/^#(https:\/\/[-.\/\w]+?\/)resources\/(\d+)/],['thread-',/^#(https:\/\/[-.\/\w]+?\/)threads\/(?:[-\w]+\.)?(\d+)/],['xfmg_album-',/^#(https:\/\/[-.\/\w]+?\/)media\/albums\/(\d+)/],['',/^#(https:\/\/[-.\/\w]+?\/)embed\.php\?content=([-\w]+)/]],b=d.createElement('iframe');b.scrolling='no';b.onload=()=>b.contentWindow.postMessage({id:0,type:'getHeight'},'*');let c;window.onmessage=a=>{a.stopImmediatePropagation();if('s9e:init'!==a.data||c)a.source===b.contentWindow&&a.data.height&&c.postMessage(+a.data.height);else{c=a.ports[0];for(const [f,g]of e)if(a=g.exec(location.hash)){b.src=a[1]+'embed.php?content='+f+a[2];d.body.appendChild(b);break}}}})(document)</script>

0 comments on commit 8887083

Please sign in to comment.