Live data from Hacker News

Disable new Slack WYSIWYG editor with this bookmarklet

github.com

11–20 of 110 posts

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#11
post #6
post #4

You can just toggle the old minimal input by clicking the first/third button from the right (Aa - Hide formatting).

The toggle only hides the UI, bad behaviour stays the same.

If slack made toggling off the UI also toggle off the behaviour, no one would be complaining.

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#12
Doing some security debugging on Slack desktop a year or so ago, I saw that you could easily open up a Chrome debugger port via CLI option to use with puppeteer/chromedp/etc. I haven't checked lately, but in theory it should be easy enough to connect to the debug port and run this short script to get the same benefit in the Electron app.

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#13

I'm not going to do this on every refresh. I predict the market/ecossytem for guerrilla browser extensions targeting technical Slack users hotting up.

How hard would it be to run Slack in a special VM that brokered UI events from another application? I.e. the latest Slack would be running in a VM that made everything seem normal to it, but in reality the UI input and output would be supplied by another application which was presenting a "Slack Classic" interface to the actual user.

At that point, you might as well just use the slack API...

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#14
post #2

Wouldn't this make more sense as a tampermonkey / greasemonkey userscript? That way it loads automatically when you visit slack, no need to repeat anything. Disadvantage would be that you need a browser extension.

Could be that some organizations disable browsers addons/extensions on their workers' browsers. Still, the option would be nice.

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#16
There are browser plugins like Greasemonkey or Tampermonkey that manage these kind of patches.

I'm often removing some "functionality" of a website I visit often (e.g. removing annoying chat boxes)

There are also repositories of scripts like GreasyFork (https://greasyfork.org). I suggest that maybe your script could be ported to Tampermonkey instead of distributing it as a bookmarklet.

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#17
post #2

Wouldn't this make more sense as a tampermonkey / greasemonkey userscript? That way it loads automatically when you visit slack, no need to repeat anything. Disadvantage would be that you need a browser extension.

Shouldn't be hard to copy-paste the provided code into Tampermonkey.

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#18

I personally don't mind the new WYSIWYG. Doesn't get in the way much at all really. The only thing it's weird with I find is the code blocks, (previously 3 backticks, linebreak, code, linebreak, 3 backticks). Not a massive fan of how after 3 backticks it now puts an inline code format 'block', seems a bit weird.

Seems weird, but I'll get used to it

Re: Disable new Slack WYSIWYG editor with this bookmarklet

#19

Doing some security debugging on Slack desktop a year or so ago, I saw that you could easily open up a Chrome debugger port via CLI option to use with puppeteer/chromedp/etc. I haven't checked lately, but in theory it should be easy enough to connect to the debug port and run this short script to get the same benefit in the Electron app.

You should be able to press Cmd+Shift+I and open the developer console.
Post reply on HN