Greasy Fork is available in English.

MathJax Kaskus

iseng

  1. // ==UserScript==
  2. // @name MathJax Kaskus
  3. // @namespace https://code.google.com/p/mathjax-kaskus/
  4. // @version 0.1
  5. // @description iseng
  6. // @include /^https?://www.kaskus.co.id/thread/*/
  7. // @include /^https?://www.kaskus.co.id/lastpost/*/
  8. // @include /^https?://www.kaskus.co.id/post/*/
  9. // @include /^https?://www.kaskus.co.id/group/discussion/*/
  10. // @include /^https?://www.kaskus.co.id/show_post/*/
  11. // @include /^https?://www.kaskus.co.id/post_reply/*/
  12. // @include /^https?://www.kaskus.co.id/edit_post/*/
  13. // @copyright 2014+, ( fauzieuy )
  14. // @author http://www.kaskus.co.id/profile/2200164
  15. // ==/UserScript==
  16.  
  17. var mathjax = document.createElement('script');
  18. mathjax.type="text/javascript";
  19. mathjax.src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";
  20.  
  21. var mathjaxConfig=document.createElement('script');
  22. mathjaxConfig.type="text/x-mathjax-config";
  23. mathjaxConfig.innerHTML= "MathJax.Hub.Config({ tex2jax: {inlineMath: [['$','$']]} });";
  24.  
  25. var head=document.getElementsByTagName('head')[0];
  26. head.appendChild(mathjax);
  27. head.appendChild(mathjaxConfig);