Skip to content

Instantly share code, notes, and snippets.

@caseywatts
Last active May 2, 2024 06:05
Show Gist options
  • Save caseywatts/2752eec406c04938630ad9e8648d9522 to your computer and use it in GitHub Desktop.
Save caseywatts/2752eec406c04938630ad9e8648d9522 to your computer and use it in GitHub Desktop.
Remove "New! Messenger App for Windows" Banner

Other gists & tricks: http://caseywatts.com/gists-and-tricks

Remove Facebook Messenger's "New! Messenger App for Windows" Banner

Bookmarklet

  1. Save this bookmarklet. Right-click on boomarks toolbar Add Page...
    • Name: Remove Messenger Banner (or whatever you like)
    • URL: (paste in the bookmarklet.js contents below)
  2. Each time you open messenger.com, click the bookmarklet and that pesky banner will be gone.

Curious how bookmarklets work? Check out Casey's bookmarklet tutorial

Console

alternatively you could paste the "paste-into-console" one into the javascript console if you want to tinker with it

Browser Extension

This could easily auto-run on the page if it was thrown into a browser extension, I just didn't do it myself. If you do, please share in the comments!

javascript:((document.querySelector('[aria-label="New! Messenger App for Windows"]').parentElement.parentElement.remove())());
document.querySelector('[aria-label="New! Messenger App for Windows"]').parentElement.parentElement.remove()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment