Hacker News new | ask | show | jobs
by testtesttest 2404 days ago
slack --inspect=4444 //will let ya connect to main electron process via chrome remote debug

Then run this

require('electron').BrowserWindow.getAllWindows()[0].webContents.executeJavaScript(` javascript:(_ => { const redux = slackDebug[slackDebug.activeTeamId].redux; const {wysiwyg_composer, wysiwyg_composer_ios, wysiwyg_composer_webapp, ...payload} = redux.getState().experiments; redux.dispatch({ type: '[19] Bulk add experiment assignments to redux', payload }); })(); `)

to disable rich text editor. Going to hack together a node launch script for slack here in a little bit :P

1 comments

Thanks a lot, I need this