This commit is contained in:
Mirco Wittrien 2021-07-05 17:42:48 +02:00
parent 8184663444
commit 731fa62f0d
4 changed files with 84 additions and 55 deletions

View File

@ -1322,8 +1322,7 @@
"UserPopout": {"props": ["userPopout", "body"]},
"UserPopoutBody": {"props": ["rolesList", "note"]},
"UserPopoutFooter": {"props": ["wumpusTooltip", "footer"]},
"UserPopoutHeader": {"props": ["aboutMeSection", "avatarPositionNormal"]},
"UserPopoutInfo": {"props": ["headerTop", "profileBadges"]},
"UserPopoutHeader": {"props": ["headerTop", "profileBadges"]},
"UserProfile": {"props": ["root", "tabBarContainer"]},
"UserProfileHeader": {"props": ["header", "additionalActionsIcon"]},
"UserProfileInfoSection": {"props": ["userInfoSection", "connectedAccounts"]},
@ -3015,7 +3014,7 @@
"userbadge": ["UserBadges", "profileBadge"],
"userbadgeouter": ["UserBadges", "clickable"],
"userbadges": ["UserBadges", "container"],
"userbadgespopout": ["UserPopoutInfo", "profileBadges"],
"userbadgespopout": ["UserPopoutHeader", "profileBadges"],
"userbadgesprofile": ["UserProfileHeader", "badgeList"],
"userbanner": ["UserBanner", "banner"],
"userbannerpopout": ["UserBanner", "popoutBanner"],
@ -3045,19 +3044,20 @@
"userpopoutcustomstatustext": ["UserPopoutHeader", "customStatusText"],
"userpopoutdivider": ["UserPopout", "divider"],
"userpopoutfooter": ["UserPopoutFooter", "footer"],
"userpopoutheaderbottag": ["UserPopoutInfo", "headerBotTag"],
"userpopoutheaderbottagwithnickname": ["UserPopoutInfo", "headerBotTagWithNickname"],
"userpopoutheaderdiscriminatorbase": ["UserPopoutInfo", "discrimBase"],
"userpopoutheaderdiscriminatornonickname": ["UserPopoutInfo", "headerTagDiscriminatorNoNickname"],
"userpopoutheadernickname": ["UserPopoutInfo", "nickname"],
"userpopoutheaderbottag": ["UserPopoutHeader", "headerBotTag"],
"userpopoutheaderbottagwithnickname": ["UserPopoutHeader", "headerBotTagWithNickname"],
"userpopoutheaderdiscriminatorbase": ["UserPopoutHeader", "discrimBase"],
"userpopoutheaderdiscriminatornonickname": ["UserPopoutHeader", "headerTagDiscriminatorNoNickname"],
"userpopoutheadernickname": ["UserPopoutHeader", "nickname"],
"userpopoutheadernormal": ["UserPopout", "headerNormal"],
"userpopoutheadertag": ["UserPopoutInfo", "headerTag"],
"userpopoutheadertagnonickname": ["UserPopoutInfo", "headerTagNoNickname"],
"userpopoutheadertagusernamebase": ["UserPopoutInfo", "headerTagUsernameBase"],
"userpopoutheadertagusernamenonickname": ["UserPopoutInfo", "headerTagUsernameNoNickname"],
"userpopoutheadertagwithnickname": ["UserPopoutInfo", "headerTagWithNickname"],
"userpopoutheadertext": ["UserPopoutInfo", "headerText"],
"userpopoutheadertop": ["UserPopoutInfo", "headerTop"],
"userpopoutheadertag": ["UserPopoutHeader", "headerTag"],
"userpopoutheadertagnonickname": ["UserPopoutHeader", "headerTagNoNickname"],
"userpopoutheadertagusernamebase": ["UserPopoutHeader", "headerTagUsernameBase"],
"userpopoutheadertagusernamenonickname": ["UserPopoutHeader", "headerTagUsernameNoNickname"],
"userpopoutheadertagwithnickname": ["UserPopoutHeader", "headerTagWithNickname"],
"userpopoutheadertext": ["UserPopoutHeader", "headerText"],
"userpopoutheadertop": ["UserPopoutHeader", "headerTop"],
"userpopoutheadertopwithcustomstatus": ["UserPopoutHeader", "headerTopWithCustomStatus"],
"userpopoutrole": ["Role", "role"],
"userpopoutrolecircle": ["Role", "roleCircle"],
"userpopoutrolelist": ["UserPopoutBody", "rolesList"],

View File

@ -258,6 +258,7 @@ module.exports = (_ => {
classes: JSON.stringify(BDFDB.DiscordClasses),
classModules: JSON.stringify(BDFDB.DiscordClassModules),
nativeCSS: (nativeCSS || "").replace(/\/assets\//g, document.location.origin + "/assets/").replace(/[\t\r\n]/g, ""),
bdCSS: (document.querySelector("#bd-stylesheet") || {}).innerText || "",
htmlClassName: document.documentElement.className,
titleBar: titleBar && titleBar.outerHTML || ""
});

View File

@ -108,7 +108,7 @@
</div>
</div>
<div id="bd-pub-li" class="REPLACE_CLASS_guildouter">
<div id="bd-pub-button" class="REPLACE_CLASS_guildinner REPLACE_CLASS_guildbuttoncontainer">public</div>
<div id="bd-pub-button" class="REPLACE_CLASS_guildinner">public</div>
</div>
<div style="opacity: 1; height: 56px; transform: scale(1);">
<div class="REPLACE_CLASS_guildouter">
@ -380,7 +380,7 @@
<div class="REPLACE_CLASS_guildpillwrapper" aria-hidden="true"></div>
</div>
<div class="REPLACE_CLASS_guildinnerwrapper">
<div class="REPLACE_CLASS_guildbuttoncontainer REPLACE_CLASS_guildinner">
<div class="REPLACE_CLASS_guildinner">
<svg width="48" height="48" viewBox="0 0 48 48" class="REPLACE_CLASS_guildsvg">
<mask id="DiscordPreviewMask10" fill="black" x="0" y="0" width="48" height="48">
<path d="M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24Z" fill="white"></path>
@ -407,7 +407,7 @@
<div class="REPLACE_CLASS_guildpillwrapper" aria-hidden="true"></div>
</div>
<div class="REPLACE_CLASS_guildinnerwrapper">
<div class="REPLACE_CLASS_guildbuttoncontainer REPLACE_CLASS_guildinner">
<div class="REPLACE_CLASS_guildinner">
<svg width="48" height="48" viewBox="0 0 48 48" class="REPLACE_CLASS_guildsvg">
<mask id="DiscordPreviewMask11" fill="black" x="0" y="0" width="48" height="48">
<path d="M48 24C48 37.2548 37.2548 48 24 48C10.7452 48 0 37.2548 0 24C0 10.7452 10.7452 0 24 0C37.2548 0 48 10.7452 48 24Z" fill="white"></path>
@ -1429,7 +1429,7 @@
<div class="REPLACE_CLASS_messagesscrollerinner">
<div class="REPLACE_CLASS_messageswelcome">
<div class="REPLACE_CLASS_messageswelcomeemptychannelicon"></div>
<h1 class="REPLACE_CLASS_messageswelcomeheader">Welcome in #selected text!</h1>
<h3 class="REPLACE_CLASS_messageswelcomeheader REPLACE_CLASS_colorbase REPLACE_CLASS_size32">Welcome in #selected text!</h3>
<div class="REPLACE_CLASS_size16 REPLACE_CLASS_messageswelcomedescription">This is the beginning of the channel #selected text. </div>
<div class="REPLACE_CLASS_messageswelcomebuttoncontainer">
<button type="button" class="REPLACE_CLASS_messageswelcomebutton REPLACE_CLASS_button REPLACE_CLASS_buttonlookblank REPLACE_CLASS_buttoncolorbrand REPLACE_CLASS_buttonsizemin REPLACE_CLASS_buttongrow">
@ -1450,8 +1450,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="https://discord.com/assets/6f26ddd1bf59740c536d2274bb834a05.png?size=" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(255, 23, 189);">DevilBro</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(255, 23, 189);">DevilBro</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Last Saturday at 3:25 PM</span>
</span>
</h2>
@ -1496,8 +1498,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="REPLACE_AVATAR" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Last Tuesday at 7:06 AM</span>
</span>
</h2>
@ -1554,8 +1558,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="REPLACE_AVATAR" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Yesterday at 8:55 AM</span>
</span>
</h2>
@ -1647,8 +1653,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="https://discord.com/assets/322c936a8c8be1b803cd94861bdfa868.png?size=" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button">Anonymous</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button">Anonymous</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Yesterday at 10:00 AM</span>
</span>
</h2>
@ -1708,8 +1716,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="https://discord.com/assets/6f26ddd1bf59740c536d2274bb834a05.png?size=" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(255, 23, 189);">DevilBro</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(255, 23, 189);">DevilBro</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Yesterday at 11:10 AM</span>
</span>
</h2>
@ -1756,11 +1766,13 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="https://discord.com/assets/3c6ccb83716d1e4fb91d3082f6b21d77.png?size=?size=" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(52, 152, 219);">Bad Bot</span>
<span class="REPLACE_CLASS_bottagregular REPLACE_CLASS_messagebottagcozy REPLACE_CLASS_bottagrem">
<span class="REPLACE_CLASS_bottagtext">BOT</span>
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(52, 152, 219);">Bad Bot</span>
<span class="REPLACE_CLASS_bottagregular REPLACE_CLASS_messagebottagcozy REPLACE_CLASS_bottagrem">
<span class="REPLACE_CLASS_bottagtext">BOT</span>
</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Yesterday at 11:15 AM</span>
</span>
</h2>
@ -1819,8 +1831,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="REPLACE_AVATAR" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Yesterday at 11:20 AM</span>
</span>
</h2>
@ -1916,8 +1930,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="https://discord.com/assets/6f26ddd1bf59740c536d2274bb834a05.png?size=" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(255, 23, 189);">DevilBro</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(255, 23, 189);">DevilBro</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Yesterday at 3:22 PM</span>
</span>
</h2>
@ -2030,11 +2046,13 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="https://discord.com/assets/3c6ccb83716d1e4fb91d3082f6b21d77.png?size=?size=" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(52, 152, 219);">Bad Bot</span>
<span class="REPLACE_CLASS_bottagregular REPLACE_CLASS_messagebottagcozy REPLACE_CLASS_bottagrem">
<span class="REPLACE_CLASS_bottagtext">BOT</span>
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(52, 152, 219);">Bad Bot</span>
<span class="REPLACE_CLASS_bottagregular REPLACE_CLASS_messagebottagcozy REPLACE_CLASS_bottagrem">
<span class="REPLACE_CLASS_bottagtext">BOT</span>
</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Today at 11:52 AM</span>
</span>
</h2>
@ -2076,8 +2094,10 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="REPLACE_AVATAR" alt=" " class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" aria-hidden="true">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_849" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button" style="color: rgb(26, 188, 156);">REPLACE_USERNAME</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Today at 5:02 PM</span>
</span>
</h2>
@ -2120,11 +2140,13 @@
<div class="REPLACE_CLASS_messagecontents">
<img src="https://discord.com/assets/f78426a064bc9dd24847519259bc42af.png" aria-hidden="true" class="REPLACE_CLASS_messageavatar REPLACE_CLASS_messageavatarclickable" alt=" ">
<h2 class="REPLACE_CLASS_messageheader">
<span tabindex="0" aria-controls="popout_2236" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button">Clyde</span>
<span class="REPLACE_CLASS_bottagregular REPLACE_CLASS_messagebottagcozy REPLACE_CLASS_bottagrem">
<span class="REPLACE_CLASS_bottagtext">BOT</span>
<span class="REPLACE_CLASS_messageheadertext">
<span tabindex="0" aria-controls="popout_2236" aria-expanded="false" class="REPLACE_CLASS_messageusername" role="button">Clyde</span>
<span class="REPLACE_CLASS_bottagregular REPLACE_CLASS_messagebottagcozy REPLACE_CLASS_bottagrem">
<span class="REPLACE_CLASS_bottagtext">BOT</span>
</span>
</span>
<span class="REPLACE_CLASS_messagetimestamp">
<span class="REPLACE_CLASS_messagetimestamp REPLACE_CLASS_messagetimestampinline">
<span aria-label="">Today at 7:22 PM</span>
</span>
</h2>
@ -2362,8 +2384,8 @@
<div aria-label="DevilBro" class="REPLACE_CLASS_userpopout" role="dialog" tabindex="-1" aria-modal="true" style="width: 300px;" data-user-id="278543574059057154">
<div class="REPLACE_CLASS_userpopoutheadernormal">
<div class="REPLACE_CLASS_userbanner REPLACE_CLASS_userbannerpopout" style="background-color: hsl(0, calc(var(--saturation-factor, 1) * 81.6%), 59.6%);"></div>
<div class="REPLACE_CLASS_userpopoutheadertop">
<div class="REPLACE_CLASS_userbadges REPLACE_CLASS_userbadgespopout REPLACE_CLASS_userbadgescolored"></div>
<div class="REPLACE_CLASS_userpopoutheadertop REPLACE_CLASS_userpopoutheadertopwithcustomstatus">
<div class="REPLACE_CLASS_userbadges REPLACE_CLASS_userbadgespopout"></div>
<div class="REPLACE_CLASS_userpopoutheadertext">
<div class="REPLACE_CLASS_userpopoutheadernickname">DevilBro</div>
<div class="REPLACE_CLASS_userpopoutheadertagwithnickname REPLACE_CLASS_nametag">
@ -2371,12 +2393,8 @@
<span class="REPLACE_CLASS_userpopoutheaderdiscriminatorbase">#4401</span>
</div>
</div>
<div class="REPLACE_CLASS_userpopoutcustomstatus">
<img src="https://discord.com/assets/ebc2b7d9c497f0e4663d46c13e35fe23.svg" alt="⛑" draggable="false" class="REPLACE_CLASS_emojiold REPLACE_CLASS_emoji REPLACE_CLASS_userpopoutcustomstatusemoji">
<span class="REPLACE_CLASS_userpopoutcustomstatustext">Helping</span>
</div>
</div>
<div class="REPLACE_CLASS_userpopoutavatarwrappernormal REPLACE_CLASS_userpopoutavataravatarpositionnormal" role="button" tabindex="0">
<div class="REPLACE_CLASS_userpopoutavatarwrappernormal REPLACE_CLASS_userpopoutclickable Mentionspositionnormal" role="button" tabindex="0">
<div class="REPLACE_CLASS_userpopoutavatar REPLACE_CLASS_avatarwrapper" role="img" aria-label="DevilBro, Idle" aria-hidden="false" style="width: 80px; height: 80px;" data-user-id="278543574059057154">
<svg width="92" height="80" viewBox="0 0 92 80" class="REPLACE_CLASS_avatarmask REPLACE_CLASS_avatarsvg" aria-hidden="true">
<foreignObject x="0" y="0" width="80" height="80" mask="url(#svg-mask-avatar-status-round-80)">
@ -2396,6 +2414,11 @@
</div>
<div class="REPLACE_CLASS_userpopoutbody REPLACE_CLASS_scrollerthin REPLACE_CLASS_scrollerfade" style="overflow: hidden scroll; padding-right: 0px;">
<div class="REPLACE_CLASS_userpopoutbodyinnerwrapper">
<div class="REPLACE_CLASS_userpopoutcustomstatus">
<img src="https://discord.com/assets/ebc2b7d9c497f0e4663d46c13e35fe23.svg" alt="⛑" draggable="false" class="REPLACE_CLASS_emojiold REPLACE_CLASS_emoji REPLACE_CLASS_userpopoutcustomstatusemoji">
<span class="REPLACE_CLASS_userpopoutcustomstatustext">Helping</span>
</div>
<div class="REPLACE_CLASS_userpopoutdivider"></div>
<div class="REPLACE_CLASS_userpopoutbodytitle">Role</div>
<div class="REPLACE_CLASS_userpopoutroles REPLACE_CLASS_userpopoutrolelist">
<div class="REPLACE_CLASS_userpopoutrole" style="border-color: rgba(255, 23, 189, 0.6);">

View File

@ -65,11 +65,16 @@
if (data.nativeCSS) {
let theme = document.createElement("style");
theme.classList.add(data.reason);
theme.innerText = data.nativeCSS;
document.head.appendChild(theme);
}
if (data.bdCSS) {
let theme = document.createElement("style");
theme.innerText = data.bdCSS;
document.head.appendChild(theme);
}
if (data.htmlClassName) document.documentElement.className = data.htmlClassName;
if (window.parent && typeof window.parent.postMessage == "function") document.documentElement.classList.add("iframe-mode");
document.documentElement.classList.add("app-focused");