Live data from Hacker News

Tell HN: You Can Revert Your Slack UI

news.ycombinator.com

1–10 of 12 posts

Tell HN: You Can Revert Your Slack UI

#1
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.

Re: Tell HN: You Can Revert Your Slack UI

#3

  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.

Re: Tell HN: You Can Revert Your Slack UI

#6
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.

Re: Tell HN: You Can Revert Your Slack UI

#7

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

THANK YOU! This is amazing.

Re: Tell HN: You Can Revert Your Slack UI

#8
post #6

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.

Re: Tell HN: You Can Revert Your Slack UI

#9
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

Re: Tell HN: You Can Revert Your Slack UI

#10
post #9

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

change .refresh to .reload
Post reply on HN