Created
October 1, 2022 11:28
-
-
Save khalby786/f7d465b5e45b7d92c40129f20734a63c to your computer and use it in GitHub Desktop.
Force Instagram dark mode using Tampermonkey
This file contains 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 Instagram Force Dark Mode | |
// @namespace https://khaleelgibran.com | |
// @version 0.1 | |
// @description Append dark mode param to Instagram URLs! | |
// @author Khaleel Gibran <hi@khaleelgibran.com> | |
// @match https://www.instagram.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=instagram.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (!window.location.search.includes("theme=dark")) { | |
window.location.replace("?theme=dark"); | |
} | |
})(); | |
// fyi instagram web already has a dark mode implemented, it just needs `?theme=dark` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment