Created
December 23, 2024 16:56
-
-
Save dubrox/210ec0e38b14ff8a3c76787290061c9b to your computer and use it in GitHub Desktop.
ZenDesk dark mode userscript for Tampermonkey while waiting for the official solution
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 ZenDesk dark mode | |
// @namespace dubrox.utilities.zendesk | |
// @version 2024-12-17 | |
// @description ZenDesk dark mode while waiting for the official solution https://support.zendesk.com/hc/en-us/community/posts/4697711236634-Zendesk-Dark-mode | |
// @author dubrox | |
// @match https://*.zendesk.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=zendesk.com | |
// @grant GM_addStyle | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const fixBgQuery = [ | |
'body', | |
'.ember-view.pane.left.section.ticket-sidebar', | |
'.scroll_content.devices', | |
'.filter-grid-list > div > div > div[data-test-id="table_container"]', | |
'[data-garden-id="pane"]', | |
].join(', '); | |
GM_addStyle(`html, img { filter: invert(1); } ${fixBgQuery} { background-color: white; }`); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment