This commit is contained in:
Mirco Wittrien 2019-07-29 18:56:15 +02:00
parent 9115e068f8
commit 17686ea05c
3 changed files with 165 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -1726,7 +1726,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
BDFDB.readServerList = function () {
var found = [], ins = BDFDB.getOwnerInstance({node:document.querySelector(BDFDB.dotCN.guilds), name:['Guild','GuildIcon'], all:true, noCopies:true, depth:99999999, time:99999999});
for (let info in ins) if (ins[info].props && ins[info].props.guild) found.push(Object.assign(new ins[info].props.guild.constructor(ins[info].props.guild), {div:ins[info].handleContextMenu ? BDFDB.React.findDOMNodeSafe(ins[info]) : BDFDB.htmlToElement(`<div class="${BDFDB.disCNS.guildouter + BDFDB.disCN._bdguild}"><div class="${BDFDB.disCNS.guildpillwrapper + BDFDB.disCN.guildpill}"><span class="${BDFDB.disCN.guildpillitem}" style="opacity: 0; height: 8px; transform: translate3d(0px, 0px, 0px);"></span></div><div class="${BDFDB.disCN.guildcontainer}" draggable="false"><div class="${BDFDB.disCN.guildinner}"><svg width="48" height="48" viewBox="0 0 48 48" class="${BDFDB.disCN.guildsvg}"><mask id="BDFDB_GUILD_${ins[info].props.guild.id}" 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><rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"></rect><rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(20 20)" fill="black"></rect></mask><foreignObject mask="url(BDFDB_GUILD_${ins[info].props.guild.id})" x="0" y="0" width="48" height="48"><a class="${BDFDB.disCN.guildiconwrapper}" draggable="false">${ins[info].props.guild.icon ? `<img class="${BDFDB.disCN.guildicon}" src="${BDFDB.getGuildIcon(ins[info].props.guild.id)}" width="48" height="48" draggable="false"></img>` : `<div class="${BDFDB.disCN.guildiconacronym}" aria-hidden="true" style="font-size: 10px;">${ins[info].props.guild.acronym}</div>`}</a></foreignObject></svg><div class="${BDFDB.disCN.guildbadgewrapper}"></div></div></div><div class="${BDFDB.disCN.guildedgewrapper}" aria-hidden="true"><span class="${BDFDB.disCN.guildedge}"></span><span class="${BDFDB.disCN.guildedge}"></span></div></div>`), instance:ins[info]}));
for (let info in ins) if (ins[info].props && ins[info].props.guild) found.push(Object.assign(new ins[info].props.guild.constructor(ins[info].props.guild), {div:ins[info].handleContextMenu ? BDFDB.React.findDOMNodeSafe(ins[info]) : BDFDB.htmlToElement(`<div class="${BDFDB.disCNS.guildouter + BDFDB.disCN._bdguild}"><div class="${BDFDB.disCNS.guildpillwrapper + BDFDB.disCN.guildpill}"><span class="${BDFDB.disCN.guildpillitem}" style="opacity: 0; height: 8px; transform: translate3d(0px, 0px, 0px);"></span></div><div class="${BDFDB.disCN.guildcontainer}" draggable="false"><div class="${BDFDB.disCN.guildinner}"><svg width="48" height="48" viewBox="0 0 48 48" class="${BDFDB.disCN.guildsvg}"><mask id="BDFDB_GUILD_${ins[info].props.guild.id}" 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><rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"></rect><rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(20 20)" fill="black"></rect></mask><foreignObject mask="url(BDFDB_GUILD_${ins[info].props.guild.id})" x="0" y="0" width="48" height="48"><a class="${BDFDB.disCN.guildiconwrapper}" draggable="false">${ins[info].props.guild.icon ? `<img class="${BDFDB.disCN.guildicon}" src="${BDFDB.getGuildIcon(ins[info].props.guild.id)}" width="48" height="48" draggable="false"></img>` : `<div class="${BDFDB.disCN.guildiconacronym}" aria-hidden="true" style="font-size: 10px;">${ins[info].props.guild.acronym}</div>`}</a></foreignObject></svg><div class="${BDFDB.disCN.guildbadgewrapper}"></div></div></div><div class="${BDFDB.disCN.guildedgewrapper}" aria-hidden="true"><span class="${BDFDB.disCN.guildedge}"></span><span class="${BDFDB.disCN.guildedgemiddle}"></span><span class="${BDFDB.disCN.guildedge}"></span></div></div>`), instance:ins[info]}));
return found;
};
@ -3941,6 +3941,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins ? BDFDB.myPlugins : {}, BDv2Api
guildcontainer: ['GuildServer', 'blobContainer'],
guilddragfix: ['Guild', 'dragfix'],
guildedge: ['GuildEdges', 'edge'],
guildedgemiddle: ['GuildEdges', 'middle'],
guildedgewrapper: ['GuildEdges', 'wrapper'],
guildheader: ['GuildHeader', 'container'],
guildheaderbanner: ['GuildHeader', 'banner'],

View File

@ -61,6 +61,11 @@
</a>
</foreignObject>
</svg>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
<div class="badgeWrapper-3e8pMZ"></div>
</div>
</div>
@ -116,6 +121,11 @@
</svg>
<div class="badgeWrapper-3e8pMZ"></div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
</div>
</div>
<div class="listItem-2P_4kh bd-guild bd-unread">
@ -142,6 +152,11 @@
</div>
</div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
</div>
</div>
<div class="listItem-2P_4kh bd-guild bd-selected">
@ -162,8 +177,18 @@
</a>
</foreignObject>
</svg>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
<div class="badgeWrapper-3e8pMZ"></div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
</div>
</div>
<div class="listItem-2P_4kh bd-guild bd-audio">
@ -194,6 +219,11 @@
</div>
</div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
</div>
</div>
<div class="listItem-2P_4kh bd-guild bd-unread bd-video">
@ -224,6 +254,135 @@
</div>
</div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
</div>
</div>
<div class="wrapper-21YSNc">
<span class="expandedFolderBackground-2sPsd- collapsed-1GMuSb"/>
<div class="listItem-2P_4kh">
<div class="pill-31IEus wrapper-sa6paO">
<span class="item-2hkk8m" style="opacity: 0; height: 8px; transform: translate3d(0px, 0px, 0px);"/>
</div>
<div class="" draggable="true">
<div class="wrapper-25eVIn">
<svg width="48" height="48" viewBox="0 0 48 48" class="svg-1X37T1">
<mask id="de965436-eee4-4430-acfb-015d095f582e" fill="black" x="0" y="0" width="48" height="48">
<path d="M0 24C0 16.5449 0 12.8174 1.21793 9.87706C2.84183 5.95662 5.95662 2.84183 9.87706 1.21793C12.8174 0 16.5449 0 24 0C31.4551 0 35.1826 0 38.1229 1.21793C42.0434 2.84183 45.1582 5.95662 46.7821 9.87706C48 12.8174 48 16.5449 48 24C48 31.4551 48 35.1826 46.7821 38.1229C45.1582 42.0434 42.0434 45.1582 38.1229 46.7821C35.1826 48 31.4551 48 24 48C16.5449 48 12.8174 48 9.87706 46.7821C5.95662 45.1582 2.84183 42.0434 1.21793 38.1229C0 35.1826 0 31.4551 0 24Z" fill="white"/>
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"/>
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(20 20)" fill="black"/>
</mask>
<foreignObject mask="url(#de965436-eee4-4430-acfb-015d095f582e)" x="0" y="0" width="48" height="48">
<div tabindex="0" class="folder-21wGz3" role="button">
<div class="folderIconWrapper-226oVY" style="background-color: rgba(114, 137, 218, 0.2);">
<div class="closedFolderIconWrapper-15K9MK" style="">
<div class="icon-3o6xvg guildIcon-GuAC7C iconSizeSmol-2Dw61G iconInactive-98JN5i noIcon-1a_FrS" role="button" style="font-size: 4px; background-image: none;">5</div>
<div class="icon-3o6xvg guildIcon-GuAC7C iconSizeSmol-2Dw61G iconInactive-98JN5i" role="button" style="background-image: url(https://cdn.discordapp.com/icons/280806472928198656/cbdda04c041699d80689b99c4e5e89dc.webp?size=);"/>
</div>
</div>
</div>
</foreignObject>
</svg>
<div class="badgeWrapper-3e8pMZ"/>
</div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"/>
<span class="middle-3rAgAl"/>
<span class="edge-1OJQxL"/>
</div>
</div>
</div>
<div class="wrapper-21YSNc">
<span class="expandedFolderBackground-2sPsd-"></>
<div class="listItem-2P_4kh">
<div class="pill-31IEus wrapper-sa6paO">
<span class="item-2hkk8m" style="opacity: 0; height: 8px; transform: translate3d(-4px, 0px, 0px);"></>
</div>
<div class="" draggable="true">
<div class="wrapper-25eVIn">
<svg width="48" height="48" viewBox="0 0 48 48" class="svg-1X37T1">
<mask id="DiscordPreviewMask6" fill="black" x="0" y="0" width="48" height="48">
<path d="M0 24C0 16.5449 0 12.8174 1.21793 9.87706C2.84183 5.95662 5.95662 2.84183 9.87706 1.21793C12.8174 0 16.5449 0 24 0C31.4551 0 35.1826 0 38.1229 1.21793C42.0434 2.84183 45.1582 5.95662 46.7821 9.87706C48 12.8174 48 16.5449 48 24C48 31.4551 48 35.1826 46.7821 38.1229C45.1582 42.0434 42.0434 45.1582 38.1229 46.7821C35.1826 48 31.4551 48 24 48C16.5449 48 12.8174 48 9.87706 46.7821C5.95662 45.1582 2.84183 42.0434 1.21793 38.1229C0 35.1826 0 31.4551 0 24Z" fill="white"></>
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"></>
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(20 20)" fill="black"></>
</mask>
<foreignObject mask="url(#DiscordPreviewMask6)" x="0" y="0" width="48" height="48">
<div tabindex="0" class="folder-21wGz3" role="button">
<div class="folderIconWrapper-226oVY" style="">
<div class="expandedFolderIconWrapper-1xLaU-" style="">
<svg name="Folder" aria-hidden="false" width="24" height="24" viewBox="0 0 24 24" style="color: rgb(114, 137, 218);">
<path fill="currentColor" d="M20 7H12L10.553 5.106C10.214 4.428 9.521 4 8.764 4H3C2.447 4 2 4.447 2 5V19C2 20.104 2.895 21 4 21H20C21.104 21 22 20.104 22 19V9C22 7.896 21.104 7 20 7Z"></>
</svg>
</div>
</div>
</div>
</foreignObject>
</svg>
<div class="badgeWrapper-3e8pMZ"></>
</div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="edge-1OJQxL"></>
<span class="half-1OBsd2"></>
</div>
</div>
<div class="expandedGuilds-1JMD4M" style="height: 112px;">
<div class="listItem-2P_4kh bd-guild bd-unread">
<div class="pill-31IEus wrapper-sa6paO bd-unread">
<span class="item-2hkk8m" style="opacity: 0.7; height: 8px; transform: translate3d(0px, 0px, 0px);"></>
</div>
<div class="blobContainer-239gwq" draggable="true">
<div class="wrapper-25eVIn">
<svg width="48" height="48" viewBox="0 0 48 48" class="svg-1X37T1">
<mask id="DiscordPreviewMask7" 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>
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"></>
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(20 20)" fill="black"></>
</mask>
<foreignObject mask="url(#DiscordPreviewMask7)" x="0" y="0" width="48" height="48">
<a class="wrapper-1BJsBx" aria-label="" href="" style="font-size: 10px;">
<div class="acronym-2mOFsV nested-1eglu6" aria-hidden="true">3</div>
</a>
</foreignObject>
</svg>
<div class="badgeWrapper-3e8pMZ"></>
</div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="half-1OBsd2"></>
<span class="half-1OBsd2"></>
</div>
</div>
<div class="listItem-2P_4kh bd-guild">
<div class="pill-31IEus wrapper-sa6paO">
<span class="item-2hkk8m" style="opacity: 0; height: 8px; transform: translate3d(-4px, 0px, 0px);"></>
</div>
<div class="blobContainer-239gwq" draggable="true">
<div class="wrapper-25eVIn">
<svg width="48" height="48" viewBox="0 0 48 48" class="svg-1X37T1">
<mask id="DiscordPreviewMask8" 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>
<rect x="28" y="-4" width="24" height="24" rx="12" ry="12" transform="translate(20 -20)" fill="black"></rect>
<rect x="28" y="28" width="24" height="24" rx="12" ry="12" transform="translate(20 20)" fill="black"></rect>
</mask>
<foreignObject mask="url(#DiscordPreviewMask8)" x="0" y="0" width="48" height="48">
<a class="wrapper-1BJsBx" aria-label="" href="">
<div class="acronym-2mOFsV nested-1eglu6" aria-hidden="true">4</div>
</a>
</foreignObject>
</svg>
<div class="badgeWrapper-3e8pMZ"></>
</div>
</div>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="half-1OBsd2"></>
<span class="half-1OBsd2"></>
</div>
</div>
</div>
</div>
<div class="listItem-2P_4kh">
@ -245,6 +404,9 @@
</svg>
</div>
</foreignObject>
<div class="wrapper-2B2Wx1" aria-hidden="true">
<span class="half-1OBsd2 higher-3RVLpi"/>
</div>
</svg>
<div class="badgeWrapper-3e8pMZ"></div>
</div>