Skip to content

Instantly share code, notes, and snippets.

@khalby786
Created October 1, 2022 11:28
Show Gist options
  • Save khalby786/f7d465b5e45b7d92c40129f20734a63c to your computer and use it in GitHub Desktop.
Save khalby786/f7d465b5e45b7d92c40129f20734a63c to your computer and use it in GitHub Desktop.
Force Instagram dark mode using Tampermonkey
// ==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