Created
February 6, 2022 07:43
-
-
Save MS-Jahan/8ad8e3e0db42f60ae4de18f82caa5ffb to your computer and use it in GitHub Desktop.
m.me Messenger Desktop Dark Mode Tempermonkey
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 Dark Theme for FB's Messenger | |
// @version 0.1 | |
// @description Dark theme for messenger.com | |
// @author Rafikus | |
// @match https://www.messenger.com/* | |
// @grant none | |
// @namespace https://greasyfork.org/users/737196 | |
// ==/UserScript== | |
(function () { | |
"use strict"; | |
document.querySelector("head > style").innerHTML = document.querySelector("head > style").innerHTML.replace(":root,.__fb-light-mode", "none").replace("__fb-dark-mode:root,.__fb-dark-mode", ":root,.__fb-light-mode"); | |
document.querySelector('html').classList.add('__fb-dark-mode'); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment