Skip to main content
adding to <https://meta.stackexchange.com/review/suggested-edits/79991>
Source Link
Glorfindel Mod
  • 255.6k
  • 61
  • 638
  • 1.3k

Finally, I succeeded to render MathJax for chats in aan Android Browser. Here are the steps:

  1. Go to play store and install Opera mini.
  2. After you install the app, open it and go to Bookmarks, Press the 3 dots in the top right corner, press New bookmark.
  3. Paste the following javascript code in the field for URL.
javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. I prefer startJax.
  2. Open your chat page, the chat won't be rendered yet.
  3. Go to bookmarks, open you saved bookmark, Your chats will be rendered now.

Finally, I succeeded to render MathJax for chats in a Android Browser. Here are the steps:

  1. Go to play store and install Opera mini.
  2. After you install the app, open it and go to Bookmarks, Press the 3 dots in the top right corner, press New bookmark.
  3. Paste the following javascript code in the field for URL.
javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. I prefer startJax.
  2. Open your chat page, the chat won't be rendered yet.
  3. Go to bookmarks, open you saved bookmark, Your chats will be rendered now.

Finally, I succeeded to render MathJax for chats in an Android Browser. Here are the steps:

  1. Go to play store and install Opera mini.
  2. After you install the app, open it and go to Bookmarks, Press the 3 dots in the top right corner, press New bookmark.
  3. Paste the following javascript code in the field for URL.
javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. I prefer startJax.
  2. Open your chat page, the chat won't be rendered yet.
  3. Go to bookmarks, open you saved bookmark, Your chats will be rendered now.
adding to <https://meta.stackexchange.com/review/suggested-edits/79991>
Source Link

Finally, I succeeded to render MathJax for chats in a ANDROID BrowserAndroid Browser. Here are the steps:

  1. Go to play store and install Opera mini.
  2. After you install the app, open it and go to Bookmarks, Press the 3 dots in the top right corner, press New bookmark.
  3. Paste the following javascript code in the field for URL.
javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. I prefer startJax.
  2. Open your chat page, the chat won't be rendered yet. Goto
  3. Go to bookmarks then, open you saved bookmark., Your chats will be rendered now.

Finally, I succeeded to render MathJax for chats in ANDROID Browser. Here are the steps

  1. Go to play store and install Opera mini.
  2. After you install the app, open it and go to Bookmarks, Press the 3 dots in the top right corner, press New bookmark.
  3. Paste the following javascript code in the field for URL.
javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. I prefer startJax.
  2. Open your chat page, the chat won't be rendered yet. Goto bookmarks then open you saved bookmark. Your chats will be rendered now.

Finally, I succeeded to render MathJax for chats in a Android Browser. Here are the steps:

  1. Go to play store and install Opera mini.
  2. After you install the app, open it and go to Bookmarks, Press the 3 dots in the top right corner, press New bookmark.
  3. Paste the following javascript code in the field for URL.
javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. I prefer startJax.
  2. Open your chat page, the chat won't be rendered yet.
  3. Go to bookmarks, open you saved bookmark, Your chats will be rendered now.
  1. Go to play store and download Opera mini.(install https://play.google.com/store/apps/details?id=com.opera.mini.nativeOpera mini).
  2. After you have completed installinginstall the app, open it. Go and go to Bookmarks., Press the 3 dots in the top right corner and then, press New bookmark.
  3. Paste thisthe following javascript code in urlthe field for URL.

javascript:(function(){if(window.MathJax===undefined){var%20script%20=%20document.createElement("script");script.type%20=%20"text/javascript";script.src%20=%20"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";var%20config%20=%20%27MathJax.Hub.Config({%27%20+%20%27extensions:%20["tex2jax.js"],%27%20+%20%27tex2jax:%20{%20inlineMath:%20[["$","$"],["\\\\\\(","\\\\\\)"]],%20displayMath:%20[["$$","$$"],["\\[","\\]"]],%20processEscapes:%20true%20},%27%20+%20%27jax:%20["input/TeX","output/HTML-CSS"]%27%20+%20%27});%27%20+%20%27MathJax.Hub.Startup.onload();%27;if%20(window.opera)%20{script.innerHTML%20=%20config}%20else%20{script.text%20=%20config}%20document.getElementsByTagName("head")[0].appendChild(script);(doChatJax=function(){window.setTimeout(doChatJax,1000);MathJax.Hub.Queue(["Typeset",MathJax.Hub]);})();}else{MathJax.Hub.Queue(["Typeset",MathJax.Hub]);}})();

javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. Mine isI prefer startJax.
  2. Open your chat page, the chat won't be rendered yet. Goto bookmarks then open you saved bookmark. Your chats will be rendered now.
  1. Go to play store and download Opera mini.(https://play.google.com/store/apps/details?id=com.opera.mini.native)
  2. After you have completed installing the app, open it. Go to Bookmarks. Press the 3 dots in the top right corner and then press New bookmark.
  3. Paste this in url.

javascript:(function(){if(window.MathJax===undefined){var%20script%20=%20document.createElement("script");script.type%20=%20"text/javascript";script.src%20=%20"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";var%20config%20=%20%27MathJax.Hub.Config({%27%20+%20%27extensions:%20["tex2jax.js"],%27%20+%20%27tex2jax:%20{%20inlineMath:%20[["$","$"],["\\\\\\(","\\\\\\)"]],%20displayMath:%20[["$$","$$"],["\\[","\\]"]],%20processEscapes:%20true%20},%27%20+%20%27jax:%20["input/TeX","output/HTML-CSS"]%27%20+%20%27});%27%20+%20%27MathJax.Hub.Startup.onload();%27;if%20(window.opera)%20{script.innerHTML%20=%20config}%20else%20{script.text%20=%20config}%20document.getElementsByTagName("head")[0].appendChild(script);(doChatJax=function(){window.setTimeout(doChatJax,1000);MathJax.Hub.Queue(["Typeset",MathJax.Hub]);})();}else{MathJax.Hub.Queue(["Typeset",MathJax.Hub]);}})();

  1. Type whatever the name you want. Mine is startJax.
  2. Open your chat page, the chat won't be rendered yet. Goto bookmarks then open you saved bookmark. Your chats will be rendered now.
  1. Go to play store and install Opera mini.
  2. After you install the app, open it and go to Bookmarks, Press the 3 dots in the top right corner, press New bookmark.
  3. Paste the following javascript code in the field for URL.
javascript: (function() {
    if (window.MathJax === undefined) {
        var script = document.createElement("script");
        script.type = "text/javascript";
        script.src = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS_HTML";
        var config = 'MathJax.Hub.Config({' + 'extensions: ["tex2jax.js"],' + 'tex2jax: { inlineMath: [["$","$"],["\\\\\\\\\\\\(","\\\\\\\\\\\\)"]], displayMath: [["$$","$$"],["\\\\[","\\\\]"]], processEscapes: true },' + 'jax: ["input/TeX","output/HTML-CSS"]' + '});' + 'MathJax.Hub.Startup.onload();';
        if (window.opera) {
            script.innerHTML = config
        } else {
            script.text = config
        }
        document.getElementsByTagName("head")[0].appendChild(script);
        (doChatJax = function() {
            window.setTimeout(doChatJax, 1000);
            MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
        })();
    } else {
        MathJax.Hub.Queue(["Typeset", MathJax.Hub]);
    }
})();
  1. Type whatever the name you want. I prefer startJax.
  2. Open your chat page, the chat won't be rendered yet. Goto bookmarks then open you saved bookmark. Your chats will be rendered now.
deleted 258 characters in body
Source Link
user404249
user404249
Loading
Source Link
user404249
user404249
Loading