Skip to content

Instantly share code, notes, and snippets.

@hejmsdz
Created January 31, 2026 20:50
Show Gist options
  • Select an option

  • Save hejmsdz/50c039cc1e726577bf7d3d1803ca833e to your computer and use it in GitHub Desktop.

Select an option

Save hejmsdz/50c039cc1e726577bf7d3d1803ca833e to your computer and use it in GitHub Desktop.
Userscript to hide Facebook button from Messenger
// ==UserScript==
// @name Hide Facebook button from Messenger
// @description Elliminate distractions by removing the button that takes from Messenger to Facebook home page
// @namespace http://tampermonkey.net/
// @version 2026-01-31
// @author Mikołaj Rozwadowski
// @match https://www.messenger.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=messenger.com
// @grant none
// ==/UserScript==
const css = `a[href="https://www.facebook.com/"] { display: none };`
const styleTag = document.createElement('style');
styleTag.innerHTML = css;
document.head.appendChild(styleTag);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment