📜 ⬆️ ⬇️

Habrahabr Enhancement Suite

Hi, Geektimes.


You can consider this post a kind of continuation of the post Natural Geektimes from awaik , as well as my post on Habré with the suggestion to use the “natural” formulas in pure TeX on the pages and connect with the MathJax bookmarklet / user script.



Constantly there is a desire to change something, to somehow customize for themselves, and, apparently, I am not alone. From here and the idea to make one user script with the options I personally want, and then call the community to add their pull requests (and wishes to the issues of course).
')
Github: https://github.com/keyten/HES .
How to install: click (need GreaseMonkey for Firefox or TamperMonkey for Chrome (and browsers based on it)) ..

For the answer, how to make the correct link, thanks Taumer .
Thanks for the title a553 .

Features:


- Night Mode (used style from WaveCut ).
- Turning pictures into "natural" formulas (TeX, MathJax).
- Hiding posts from certain authors from the list (editors of Geektimes, etc).
- There is a partial hide (looks much better than the full one):

- Hiding dies with userinfo (done by Amomum request ):


About formulas a little more in detail


In August of this year, parpalak created an editor that transforms Markdown + LaTeX into html + images. Addresses of the images look like https://tex.s2cms.ru/svg/__TeX , it is the script that searches for them, replaces them with live TeX, and then connects MathJax, which shows these formulas live.

What for? First: I personally like the font used by MathJax much more, it is much simpler and more pleasant to read (IMHO).

Second: you can right-click on them and get a clean code in TeX.
And third: these formulas can be distinguished, from which I personally get aesthetic pleasure.

It is possible to look in any of maisvendoo , for example, here . Occasionally there are formulas with which MathJax cannot cope, it is enough to hover over them - the user script will react (to the presence of the merror tag) and show the original image.
UPD. The script has learned to respond without guidance, thanks extempl .

Settings are hidden in the settings menu:

For habr, GT and MM settings separately (localStorage is used).

That seems to be all. Questions, ideas, suggestions?

PS I apologize to spmbt , I'm allergic to HabrAjax.

Source: https://habr.com/ru/post/391267/


All Articles