1. Home
  2. Docs
  3. Myanmar Unicode Toolkit
  4. Zawgyi Force and Unicode Force

Zawgyi Force and Unicode Force

Zawgyi force and Unicode is a browser script used to change browser font to unicode or zawgyi forcefully.It works on bookmark bar.

You can create a bookmark by click on Star button in your address bar.( I tested on google chrome. So, it may be in different place in other browsers ).Create a bookmark and go to edit bookmark. Copy the following code and name the bookmark to zawgyi and unicode. Whenever your browser is unicode and you want to show zawgyi in browser, click on zawgyi bookmark. Then, all the words including typing will change to zawgyi instantly . The same way will work for unicode.

Screen Shot 2017-08-09 at 11.40.24 AM.png

You can see zawgyi force and unicode force in the following screenshot.

Screen Shot 2017-08-09 at 11.39.19 AM.png

Zawgyi Force

Copy the following code and put it in bookmark bar. Note that it needs Zawgyi One font to work. Download Zawgyione font in here.

​javascript:(function(){fontfamily='Zawgyi-One'; document.getElementsByTagName('body')[0].style.fontFamily=fontfamily; var tag=['body','p','li','span','textarea','input','div','a','td','h1','h2','h3']; var p; for(j=0;j<tag.length;j++){ if(document.getElementsByTagName(tag[j])!=null) {p=document.getElementsByTagName(tag[j]); for(i=0;i<p.length;i++) { if( p[i].style !=undefined){ p[i].style.fontFamily=fontfamily;} } } } var iframe=document.getElementsByTagName('iframe'); for(k=0;k<iframe.length;k++) { doc=iframe[k].contentDocument;for(j=0;j<tag.length;j++){if(document.getElementsByTagName(tag[j])!=null) { p=doc.getElementsByTagName(tag[j]); for(i=0;i<p.length;i++) { if( p[i].style !=undefined){ p[i].style.fontFamily=fontfamily;} } } } } })();

Unicode Force

Copy the following code and put it in bookmark bar. Note that it needs pyidaungsu font to work. Download Pyidaungsu font in here.

javascript:(function(){fontfamily='Pyidaungsu'; document.getElementsByTagName('body')[0].style.fontFamily=fontfamily; var tag=['body','p','li','span','textarea','input','div','a','td','h1','h2','h3']; var p; for(j=0;j<tag.length;j++){ if(document.getElementsByTagName(tag[j])!=null) {p=document.getElementsByTagName(tag[j]); for(i=0;i<p.length;i++) { if( p[i].style !=undefined){ p[i].style.fontFamily=fontfamily;} } } } var iframe=document.getElementsByTagName('iframe'); for(k=0;k<iframe.length;k++) { doc=iframe[k].contentDocument;for(j=0;j<tag.length;j++){if(document.getElementsByTagName(tag[j])!=null) { p=doc.getElementsByTagName(tag[j]); for(i=0;i<p.length;i++) { if( p[i].style !=undefined){ p[i].style.fontFamily=fontfamily;} } } } } })();

Credit

The script was created by Saturn God. blog.saturngod.net

zawgyi force unicode force gif