https://github.com/jurasciix/mathex
Chrome, Tampermonkey extension for vk.com to write math expressions like TeX.
https://github.com/jurasciix/mathex
chrome-extension tampermonkey tex
Last synced: 4 months ago
JSON representation
Chrome, Tampermonkey extension for vk.com to write math expressions like TeX.
- Host: GitHub
- URL: https://github.com/jurasciix/mathex
- Owner: JuraSciix
- Created: 2024-03-16T18:20:17.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-11T05:14:12.000Z (5 months ago)
- Last Synced: 2025-01-11T06:19:26.838Z (5 months ago)
- Topics: chrome-extension, tampermonkey, tex
- Language: JavaScript
- Homepage:
- Size: 107 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is it?
This is a [Tampermonkey](https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo)
extension
that adds some TeX-like functionality in follow:
* [vk.com classic messenger](https://vk.com/im).
* [vk.com new messenger](https://vk.com/im).
* [web.vk.me](https://web.vk.me).## Installing
Open [user script](mathex.user.js), press "Raw" and follow the instructions.
## Features
### Tags
Right now available the following tags:
| Tag | Replacement |
|-------------|-------------|
| \alpha | α |
| \beta | β |
| \gamma | γ |
| \delta | δ |
| \Delta | Δ |
| \epsilon | ε |
| \eps | ε |
| \theta | θ |
| \Theta | Θ |
| \lambda | λ |
| \nu | ν |
| \pi | π |
| \sigma | σ |
| \Sigma | Σ |
| \tau | τ |
| \phi | φ |
| \psi | ψ |
| \Psi | Ψ |
| \omega | ω |
| \Omega | Ω |
| \neq | ≠ |
| \modeq | ≡ |
| \pm | ± |
| \sqrt | √ |
| \int | ∫ |
| \to | → |
| \eq | ⇔ |
| \wedge | ∧ |
| \and | ∧ |
| \vee | ∨ |
| \or | ∨ |
| \neg | ¬ |
| \forall | ∀ |
| \exists | ∃ |
| \empty | ∅ |
| \varnothing | ∅ |
| \in | ∈ |
| \notin | ∉ |
| \subset | ⊂ |
| \upset | ⊃ |
| \cup | ⋃ |
| \cap | ⋂ |
| \mapsto | ↦ |
| \N | ℕ |
| \Z | ℤ |
| \Q | ℚ |
| \R | ℝ |
| \C | ℂ |
| \le | ≤ |
| \ge | ≥ |
| \approx | ≈ |
| \cbrt | ∛ |
| \qdrt | ∜ |
| \der | ∂ |
| \times | × |
| \dot | ∙ |
| \comp | ∘ |
| \circ | ∘ |
| \sum | Σ |
| \prod | ∏ |
| \inf | ∞ |And more...
### Script Mode
Script Mode can be enabled by wrapping text with __\\\[__ and __\\\]__.
Inside the __Script Mode__ you can use **^**, **_** and parentheses:* **^** makes next group as superscript, if might.
* **_** makes next group as subscript, if might.
* Brackets **()**, **[]**, **{}** separates text to different groups.__Note: if it is not possible to apply the script to at least one character in the bracket,
then the script is NOT APPLIED to the entire bracket__For example:
| Input | Output |
|----------------------|----------|
| \\\[\alpha^2x\\] | α²ˣ |
| \\\[\alpha^x+2\\] | αˣ+2 |
| \\\[\alpha^(x+2)\\] | α⁽ˣ⁺²⁾ |
| \\\[\alpha^xy\\] | αˣy |
| \\\[\alpha^(xy)\\] | α⁽ˣʸ⁾ |
| \\\[\alpha^\[x+2]\\] | α^\[x+2] |
| \\\[\alpha_(i+j)\\] | α₍ᵢ₊ⱼ₎ |
| \\\[\alpha_i+j\\] | αᵢ+j |> `\[α^[x+2]\]` is `α^[x+2]` because we can't make the `[]` as superscript.
## Wishes
I wish you would give a star to the repository.
And leave your suggestions (or critique) in __Issues__/__Pull Requests__.