Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save birkestroem/9a7aed9fff7f471eaf863423afd00633 to your computer and use it in GitHub Desktop.
Save birkestroem/9a7aed9fff7f471eaf863423afd00633 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Reorder Zendesk sidebar widgets
// @namespace https://www.one.com/
// @version 0.1
// @description Moves sidebar widget to the top
// @author Jesper Birkestrøem
// @match https://*.zendesk.com/chat/agent*
// @grant GM_addStyle
// ==/UserScript==
GM_addStyle(".tab_container .tab_content { display: flex !important; flex-direction: column !important; }");
// Listed in order of DOM appearance
GM_addStyle(".tab_container .tab_content .jx_ui_html_div.quick_stats { order: 2; }");
GM_addStyle(".tab_container .tab_content .jx_ui_html_div { order: 3; }"); // weird clearfix like div that is hidden
GM_addStyle(".tab_container .tab_content .boxie.web_path { order: 4; }");
GM_addStyle(".tab_container .tab_content .boxie.integrations { order: 5; }");
GM_addStyle(".tab_container .tab_content .meshim_dashboard_components_chatPanel_ZendeskLoader { order: 6; }");
GM_addStyle(".tab_container .tab_content .meshim_dashboard_components_chatPanel_sideBar_ChatAppsWrapper { margin-bottom: 10px; order: 1; }");
GM_addStyle(".tab_container .tab_content .jx_ui_html_div.boxie { order: 7; }");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment