d4rky·7 年前·議論Instead of using open you can just run the binary inside Slack.app directory:SLACK_DEVELOPER_MENU=true /Applications/Slack.app/Contents/MacOS/Slack
d4rky·7 年前·議論well, they can use the browser version and have this snippet working without any extra steps
d4rky·7 年前·議論You can do it in the desktop app as well. If you run it with SLACK_DEVELOPER_MENU=true in env vars, it'll enable you to right click to Inspect Element, open devtools and run this code snippet there
SLACK_DEVELOPER_MENU=true /Applications/Slack.app/Contents/MacOS/Slack