Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Hide messages replying to blocked users #4

Open
summatix opened this issue Sep 22, 2021 · 1 comment
Open

Feature request: Hide messages replying to blocked users #4

summatix opened this issue Sep 22, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@summatix
Copy link

For the desktop I have the following code running:

setInterval(function(){
    var messages = document.querySelectorAll('[class^="messageListItem"]');
    messages.forEach(msg => {
        const replyTxt = msg.querySelector('[class^="repliedTextPlaceholder"]');
        if (replyTxt && replyTxt.textContent === 'Blocked message.') {
            if(msg.style.display !== "none") msg.style.display = "none";
        }
    });
}, 500);

This hides messages that are responding to users you've blocked.

Is there any way to port this into the HideBlockedMessages plugin?

@lexisother lexisother added the enhancement New feature or request label Nov 10, 2021
@Abhishek12345679
Copy link

any plans on adding this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants