Slack Layout UI Restore

A script to restore the old Slack UI layout, reverting the changes made in the September 2023 update.

  1. // ==UserScript==
  2. // @name Slack Layout UI Restore
  3. // @namespace https://github.com/bpetrynski/
  4. // @version 0.1
  5. // @description A script to restore the old Slack UI layout, reverting the changes made in the September 2023 update.
  6. // @author Bartosz Petrynski
  7. // @match https://*.slack.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. let localConfig = localStorage.getItem("localConfig_v2");
  16. if (localConfig) {
  17. localConfig = localConfig.replace(/\"is_unified_user_client_enabled\":true/g, '\"is_unified_user_client_enabled\":false');
  18. localStorage.setItem("localConfig_v2", localConfig);
  19. }
  20. })();