User:Erutuon/scripts/scriptClasses.js

var watchlistLinks = document.getElementsByClassName("mw-changeslist-title"); var GreekChar = /[Ͱ-Ͽἀ-῾]/; var ArabChar = /[؀-ۿݐ-ݿࢠ-ࣿﭐ-﷽ﹰ-ﻼ]/;

for ( i = 0; i < watchlistLinks.length; i++ ) { var link = watchlistLinks[i]; var innerHTML = link.innerHTML; var GreekChars = GreekChar.test(innerHTML); var ArabChars = ArabChar.test(innerHTML); if ( GreekChars ) { link.className += " Grek"; } else if ( ArabChars ) { link.className += " Arab"; } }