Phandeeyar Toolbox
  • Toolbox
  • Zapier Automating Workflows
  • Useful Google Sheet Functions
  • Unicode/Zawgyi Bookmarklet
  • Open Data Kit
  • Kobotoolbox
  • Using Google OCR for Myanmar Lang
  • Unicode Made Easy
  • Getting Direct Link From Google Drive Image File
  • Using Google OCR in sheet
Powered by GitBook
On this page
  • Zawgyi Force
  • Unicode Force
  • Credit

Unicode/Zawgyi Bookmarklet

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

PreviousUseful Google Sheet FunctionsNextOpen Data Kit

Last updated 7 years ago

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.

Zawgyi Force


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

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

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

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

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

The script was created by Saturn God.

here.
here.
blog.saturngod.net