last day (19 days later) » 

6:47 AM
Sir, I really need your help now. The chatjax script that you have made as a bookmark is working fine in Telegram, but there are some little problems.
I found this github page which have a little variation in your script. But sir installing it on Telegram doesn't work on MACBOOK PRO, what could be the reason.
Do I need some VPNs?
 
7:05 AM
I have no idea what their website uses. If it is not AJAX based, there is little hope that the bookmark will work.
 
@robjohn It is working, but there are some glitches.
 
Okay. What kind of glitches?
 
Like only sent equations are rendering
And if we try to write an equation it gets rendered before sending, but after getting sent it is broken. Should I make a short video to show the glitches or is it clear sir?
@robjohn
 
are you using the bookmark, or the GitHub code?
 
@robjohn Your bookmark
 
7:19 AM
It sounds as if the loop is not getting queued. There is a loop to render new MathJax every 1 second.
 
@robjohn Maybe. Is it easy to fix?
Sir, how can we make a script a bookmark (the way you did) so that all we have to do is to click on the bookmark instead of pasting the script in console and running it every time?
 
7:32 AM
@Knight just look at the bookmark and see how it works. The complete code is on the ChatJax webpage in the edit field for troublesome browsers.
I am not sure what is going on there, but it may be where it checks window.MathJax===undefined is failing. That is, window.MathJax is somehow defined on that page.
 
@robjohn Yes sir. But I cannot find a way to paste a javascript and make it a bookmark. I'm on chrome right now, if I add a new bookmark only two options are coming "Name" and "URL"
 
Yes. If you follow the directions on the ChatJax installation page, you paste the code into the URL field.
 
Okay.
 
8:04 AM
Have you tried that?
 
 
2 hours later…
9:51 AM
:55113006 Pasting this code
(function(){
    var toRender = document.getElementsByClassName("im_history_scrollable_wrap nano-content")

    if(window.MathJax===undefined){
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' +
            'tex2jax: { inlineMath: [["",""]],' +
            'displayMath: [["
IN the place of URL gives the prompt "Invalid URL"
What should be the correct way to do it?
 
 
5 hours later…
2:33 PM
@Knight That code is not URL-escaped. That is why the code on my installation page looks so bizarre, with lots of %20s and backslashes, etc.
Without escapes, the spaces alone will prevent the URL from being valid.
 
3:13 PM
@robjohn I understand, yes.
 
3:42 PM
Then the backslashes are needed to escape those from the input to the browser, then again for the browser passing them to the MathJax code, so the number of backslashes is important.
 
4:21 PM
@robjohn So, that means your chatjax bookmark is a result of hard work, I think.
How many days it took you to make that?
 
It took time to get it quoted properly to work as a bookmark. It is not simply pushing code into a bookmark's URL.
I don't remember how long it took. It was many years ago.
It was over 8 years ago, with minor modifications along the way
 

  last day (19 days later) »