Tell HN: You Can Revert Your Slack UI

17 points by apimade ↗ HN
Firefox addon is awaiting approval. However in the meantime, open up console and type this in - then hit refresh:

    localStorage.setItem("localConfig_v2", localStorage.getItem("localConfig_v2").replace(/\"is_unified_user_client_enabled\":true/g, '\"is_unified_user_client_enabled\":false'))
Addon will be available here: https://addons.mozilla.org/en-US/firefox/addon/slackrevert/

If you're on Chrome: sorry. I'm not paying the developer fee.

11 comments

[ 2.8 ms ] story [ 37.2 ms ] thread
I guess this will work until they remove the feature flag.

If you have a chrome build I can publish it for you. My email is in my profile.

  localStorage.setItem('localConfig_v2', localStorage.getItem('localConfig_v2').replace(/"is_unified_user_client_enabled":true/g, '"is_unified_user_client_enabled":false'))
For folks who might be wondering, the fee to publish in the Chrome store is $5 one time. Safari I believe is $100 a year. Firefox is free.
Any way to do this in the desktop app?
For mac you can get dev tools by either launching slack with

    export SLACK_DEVELOPER_MENU=true; open -a /Applications/Slack.app
to make this persistent you can use.

    launchctl setenv SLACK_DEVELOPER_MENU true

and then right click and inspect element and add the scripts
Is there anyway to automate slack without going the api route (since it requires workspace admin approval)?

I want to start by having a global shortcut in macOS that sets me away and disables notifications. I don’t want to click anywhere.

I haven't tried it myself, but you can use AppleScript and System Events to foreground an app and send it keystrokes, find UI elements, and click things. It might be a little bit tricky because of the Electron part, but I think that will amount to inconvenience rather than blocking you outright.
javascript:(async function () { localStorage.setItem("localConfig_v2", localStorage.getItem("localConfig_v2").replace(/\"is_unified_user_client_enabled\":true/g, '\"is_unified_user_client_enabled\":false')); location.refresh(); }) ();

Copy this to a bookmark and then press it whilst you're on Slack web

for ubuntu(VM installed w/SNAP): export SLACK_DEVELOPER_MENU=true; /snap/bin/slack snap update snap upgrade right-click an element and inspect, switch to dev console: localStorage.setItem("localConfig_v2", localStorage.getItem("localConfig_v2").replace(/\"is_unified_user_client_enabled\":true/g, '\"is_unified_user_client_enabled\":false')) restart slack