slack-disable-wysiwyg-bookmarklet icon indicating copy to clipboard operation
slack-disable-wysiwyg-bookmarklet copied to clipboard

Stopped working in newest Slack version

Open karlwilbur opened this issue 5 years ago • 5 comments

This seems to have stopped working in the newest version of Slack. I am running the Slack Desktop app on Ubuntu 18.04.

This was working for me previously. I am constantly running Slack in "developer mode" and after each restart I have to copy-paste the content of index.js from slack-disable-wysiwyg-bookmarklet into the console in Slack. This was working as expected until very recently. I am noticing today that is no longer works to disable the WYSIWYG editor. I still have format-as-you-type functionality enabled in Slack. Additionally, I have discovered a new "feature" that is when I paste content with markdown in it:

`bar` should not be formatted until I submit

...I am seeing a little popup message that says "Apply Formatting?". If I do not apply formatting, this message doesn't get formatted at all. I was able to submit a message with Markdown and have it work as expected (that is display as formatted text in the chat history). This seems to have changed within the last few days.

> slackDebug.versionInfo
{
  versionHash: "0756f06a6f0457de4e355149a4321a9abb8befa5", 
  versionTs: "1576605650", 
  minVersionDataTs: 1573504200
}

karlwilbur avatar Dec 18 '19 16:12 karlwilbur

@kfahy Is this a problem with how redux dispatches?

pocc avatar Dec 20 '19 19:12 pocc

Ahh yeah, good find. My guess is that Slack decoupled the feature from the "wysiwyg" AB tests. The script had worked by deleting some AB tests from the client, which effectively disabled them. In the latest version of the client, even if I try to delete all the AB tests in this manner, the new editor is still enabled.

kfahy avatar Dec 20 '19 23:12 kfahy

bump

evandrix avatar Dec 23 '19 09:12 evandrix

We can disable this feature in preferences now! :tada: https://github.com/kfahy/slack-disable-wysiwyg-bookmarklet#update

aasdkl avatar Jan 13 '20 04:01 aasdkl

@aasdkl yes, but no.

It is still a significant degradation. For example, if you "disable" you cannot write lists like this:

 * One line
   - Indented
 * Second line

It will not be parsed as markdown to create a list like it used to (prior to this awful WYSIWYG)

  • One line
    • Indented
  • Second line

The output will instead look something like this:

* One line - Indented * Second line

It is bad and Slack should feel bad.

NiklasBr avatar Jan 13 '20 07:01 NiklasBr