Mathjax on GNU IceCat - and cloudfront.net and cloudflare.com
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Mathjax on GNU IceCat - and cloudfront.net and cloudflare.com
When using GNU IceCat browser to look at a technical forum, seeing text like "## N^2 ##", it is clearly a Latex-like expression that is supposed to render into a nice n_squared expression.
This is something done by Mathjax, a Javascript library which displays mathematical notation in most web browsers using MathML, Latex, and ASCIIMathML markup languages.
Mathjax installs from the Debian or Ubuntu repositories (and likely others) as libjs-mathjax.
OK - I did that, but I am unclear as to how to make the browser aware it is there, and to use it.
.. which brings us to cloudfront.net, and cloudfront.com
Enabling the script from "[I]cloudflare.com" makes it all work, even without a local mathjax. We get our n_squared notation.
To provide some of the functionality on this very LinuxQuestions.org site requires javascript from cloudflare.com
Not to be confused with "cloudfront.net"
This one is apparently capable of inserting or embedding javascript code into webpages creating links to ads and more when displaying the page. The source itself is not changed but modifed during the display.
Very clever - using Javascript to invoke external loaders. I guess I don't know very much about how safe/trustworthy this is.
My question is, do we really need external content providers to get a browser to use Mathjax?
Even more, what if the Javascript is not enabled, but Mathjax is already installed from the repository? Can it still work?
Finally, should a Linux user be wary of, and maybe block cloudfront.net?
.. which brings us to cloudfront.net, and cloudfront.com
Enabling the script from "[I]cloudflare.com" makes it all work, even without a local mathjax. We get our n_squared notation.
Presumably that web page is using a copy of mathjax via cloudflare.com.
Quote:
Finally, should a Linux user be wary of, and maybe block cloudfront.net?
I don't think there is a particular reason to be wary of cloudfront in particular, it's just serving copies of things chosen by the website operator. Although you may decide that you don't trust Amazon generally (all big corporations are evil, right? ).
I don't think there is a particular reason to be wary of cloudfront in particular, it's just serving copies of things chosen by the website operator. Although you may decide that you don't trust Amazon generally (all big corporations are evil, right? ).
My thanks ntubski
OK - I get it. Mathjax is then a tool for use at the page creation end, put in a script, so that a browser with the markup language smarts will render it nicely. I guess I have always had that little dilemma when encountering any Tex or Latex content. One always needed some extra rendering viewer or WSIWYG tool to get to see it like the printer would deliver it.
As for cloudfront.net and the like.
It is not that I am super-paranoid suspicious. I just use a Firefox-type browser with the NoScript add-on, and I am happy to enable the reasonable scripts to allow the main site to work. If it then requires 10, or 20, or 40 further scripts, I have to think "why"? !! In that case, it breaks my trust. If the site still works, I press on. If getting it to work is conditional on all the peeper sites getting information, then the site is toast!
Being less profiled lets me see search results less filtered to what some robot algorithm decides I should see.
e.g. Setting cookies to be deleted on closing the browser makes for a much better experience when it is then used on something like (say) YouTube. I like to see the bigger range of eclectic choices, rather than have the choices "refined for a better browsing experience". I like to be the one to choose what is "better" for me.
LQ uses netdna-ssl.com, and I trust LQ, so I am sure it is OK.
I do know that finding out what exactly netdna-ssl really does is not so easy!
Mathjax installs from the Debian or Ubuntu repositories (and likely others) as libjs-mathjax.
OK - I did that, but I am unclear as to how to make the browser aware it is there, and to use it.
.. which brings us to cloudfront.net, and cloudfront.com
Enabling the script from "[I]cloudflare.com" makes it all work, even without a local mathjax. We get our n_squared notation.
sadly, most browsers aren't able to use programs installed locally.
yes, the site uses some mathjax javascript hosted on cloudflare.
fwiw, there's an addon that attempts to replace commonly used remote scripts with local versions (but still not the one you installed via apt): https://addons.mozilla.org/en-US/fir...decentraleyes/
maybe it includes mathjax...
(btw if you decide to try that i think you'd still have to allow access to cloudfront, and trust that the addon then replaces the request with a localised one)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.