Created
January 31, 2026 20:50
-
-
Save hejmsdz/50c039cc1e726577bf7d3d1803ca833e to your computer and use it in GitHub Desktop.
Userscript to hide Facebook button from Messenger
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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