You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Download the script](https://github.com/fsavje/math-with-slack/releases/download/v0.2.2/math_with_slack.bat) and double-click to run. Alternatively, run it in the command prompt with:
32
+
[Download the script](https://github.com/fsavje/math-with-slack/releases/download/v0.2.3/math-with-slack.bat) and double-click to run. Alternatively, run it in the command prompt with:
33
33
34
34
```shell
35
-
math_with_slack.bat
35
+
math-with-slack.bat
36
36
```
37
37
38
38
(Windows will probably give you a security warning when running the script since it's downloaded from Internet.)
39
39
40
+
The script assumes that you've downloaded the app directly from Slack. If you're using the Windows Store version, it will not find Slack's location. You need to provide the location yourself in that case (see "If Slack cannot be found" below). The app will most likely be installed at `C:\Program Files\WindowsApps\` and the folder might be named something like `A12B23C.Slack_2.9.0.0_x64__A12B23C`. You would then call the script with:
To uninstall, run the script again with the `-u` flag:
44
50
45
51
```shell
46
-
sudo bash math_with_slack.sh -u
52
+
sudo bash math-with-slack.sh -u
47
53
```
48
54
49
55
```shell
50
-
math_with_slack.bat -u
56
+
math-with-slack.bat -u
51
57
```
52
58
53
59
@@ -61,11 +67,11 @@ The code injected by the script might be overwritten when you update the Slack a
61
67
If you've installed Slack in some exotic place, the script might not find the installation by itself or it might find the wrong installation. In such cases, you need to specify the location of Slack's `app.asar.unpacked/src/static` folder as a parameter:
@@ -78,7 +84,7 @@ Note that only users with MathJax injected in their client will see the rendered
78
84
79
85
## How does it work?
80
86
81
-
The script alters how Slack is loaded. Under the hood, the desktop client is based on ordinary web technology. The modified client loads the [MathJax library](https://www.mathjax.org) after start-up and adds a listener for messages. As soon as it detects a new message, it looks for TeX-styled math and tries to render. Everything is done in the client; messages are *never* sent to any server for rendering.
87
+
The script alters how Slack is loaded. Under the hood, the desktop client is based on ordinary web technology. The modified client loads the [MathJax library](https://www.mathjax.org) after start-up and adds a listener for messages. As soon as it detects a new message, it looks for TeX-styled math and tries to render. Everything is done in the client. Messages are *never* sent to servers for rendering.
82
88
83
89
84
90
## Can I contribute?
@@ -92,6 +98,8 @@ Yes, please. Just add an [issue](https://github.com/fsavje/math-with-slack/issue
0 commit comments