Adding layer-id for guild settings
This commit is contained in:
parent
17552f6a38
commit
4805bbc0ef
File diff suppressed because one or more lines are too long
|
@ -305,7 +305,10 @@ Core.prototype.initObserver = function () {
|
|||
if(!classNameModal)classNameModal = BDModules.get((e) => e.modal && typeof e.modal === "string" && e.inner && typeof e.inner === "string" && !e.responsiveWidthMobile)[0].modal
|
||||
|
||||
if (node.classList.contains(classNameLayer)) {
|
||||
if (node.getElementsByClassName("guild-settings-base-section").length) node.setAttribute("layer-id", "server-settings");
|
||||
if (node.getAttribute("aria-label") === "GUILD_SETTINGS"){
|
||||
node.setAttribute("layer-id", "server-settings");
|
||||
node.setAttribute("id", "server-settings");
|
||||
}
|
||||
|
||||
if (node.getElementsByClassName(classNameSocialLinks).length) {
|
||||
node.setAttribute("layer-id", "user-settings");
|
||||
|
|
|
@ -50,6 +50,7 @@ export function checkViruses(hash, data, resultCallback, removeCallback, filenam
|
|||
"BrowserWindow"
|
||||
]){
|
||||
if(keyword.toLowerCase().includes(oof.toLowerCase())){
|
||||
console.log(oof, keyword)
|
||||
isHarmful = "token stealer/virus"
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue