Skip to content

Instantly share code, notes, and snippets.

@No-Eul
Last active February 12, 2024 10:33
Show Gist options
  • Save No-Eul/3ea69c46830f959aa1f56d6d317240b7 to your computer and use it in GitHub Desktop.
Save No-Eul/3ea69c46830f959aa1f56d6d317240b7 to your computer and use it in GitHub Desktop.
Hide Blocked Message in Discord
var hideBlockedMessage = setInterval(() => {
document.querySelectorAll('div[class^="groupStart"]') // Get all the 'Blocked message's
.forEach(blockMsg => blockMsg.hidden ? void undefined : blockMsg.hidden = true) // Then change 'hidden' value of the tags to true if it isn't hidden
}, 50); // period; You can remove this value, but it may be increase stress on the browser or client
// clearInterval(hideBlockedMessage);
// If you want to show the blocked message again, you can run this code. Then go to other channel and come back, you'll see the hidden message.
@No-Eul
Copy link
Author

No-Eul commented Oct 10, 2020

Copy this code, and paste into the console of your browser or Discord client!

Before Opening DevTools:

Discord ᅟhas updated to prevent people from opening the console easily in the client. For the reason, you have to do first before you open it:
If you are using Windows, open the file "%APPDATA%\Discord\settings.json" (create it when doesn't exist) and add the key-value pair; It should be seperated each key-value pair by , (comma). Like this:

{
  "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true
}

How to Open DevTools:

In Discord client, press Ctrl, Shift and I
In web browser, press F12

이 코드를 복사해서 당신의 브라우저나 디스코드 콘솔에 붙여넣으세요!

개발자 도구를 열기전에:

디스코드는 사람들이 클라이언트에서 개발자 도구를 쉽게 열지 못하도록 업데이트했습니다. 그래서 개발자 도구를 열기 전에 해야 할 일이 있습니다.
Windows를 사용 중이면 "%APPDATA%\Discord\settings.json" 파일을 열고 (없으면 만들기) 특정 키-값 쌍을 다음과 같이 추가합니다. 이 때, 각각의 키-값 쌍들은 , 로 구분되어야 합니다.

{
  "DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true
}

개발자 도구 여는 방법:

디스코드 클라이언트에서 Ctrl Shift I 키 누르기
웹 브라우저에서 F12 키 누르기

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment