User:Splarka/rtl.js

if(queryString('rtl') == '1') { document.getElementsByTagName('html')[0].setAttribute('dir','rtl'); importStylesheetURI(stylepath + '/' + skin + '/rtl.css'); }

function queryString(p) { var re = RegExp('[&?]' + p + '=([^&]*)'); var matches; if (matches = re.exec(document.location)) { try { return decodeURI(matches[1]); } catch (e) { } }  return null; }