Hello everyone
EDITED BY ME
- Code:
image description https://illiweb.com/fa/modernbb/icon_contact_www.png
EDITED BY ME
RotAxVN v1.2.2 is now live
Don't hesitate to contact us if you have any question.
Thank you for your time!
2 Thu 16 Feb 2023 - 8:36
Posts : 34
Coins : 2147487565
Reputation : -2
Character
Class: Paladin
Nation: Alethius
function lang_vi(a) {
a = a.toLowerCase();
a = a.replace(/\u00e0|\u00e1|\u1ea1|\u1ea3|\u00e3|\u00e2|\u1ea7|\u1ea5|\u1ead|\u1ea9|\u1eab|\u0103|\u1eb1|\u1eaf|\u1eb7|\u1eb3|\u1eb5/g, "a");
a = a.replace(/\u00e8|\u00e9|\u1eb9|\u1ebb|\u1ebd|\u00ea|\u1ec1|\u1ebf|\u1ec7|\u1ec3|\u1ec5/g, "e");
a = a.replace(/\u00ec|\u00ed|\u1ecb|\u1ec9|\u0129/g, "i");
a = a.replace(/\u00f2|\u00f3|\u1ecd|\u1ecf|\u00f5|\u00f4|\u1ed3|\u1ed1|\u1ed9|\u1ed5|\u1ed7|\u01a1|\u1edd|\u1edb|\u1ee3|\u1edf|\u1ee1/g, "o");
a = a.replace(/\u00f9|\u00fa|\u1ee5|\u1ee7|\u0169|\u01b0|\u1eeb|\u1ee9|\u1ef1|\u1eed|\u1eef/g, "u");
a = a.replace(/\u1ef3|\u00fd|\u1ef5|\u1ef7|\u1ef9/g, "y");
a = a.replace(/\u0111/g, "d");
a = a.replace(/\W+/g, "-");
return a.replace(/^\-+|\-+$/g, "")
}
$(function () {
$("a[href^='/t'], a[href^='http://" + location.host + "/t']").html(function () {
var a = $(this).text();
if (/^\[(abc)\]/i.test(a)) return a.replace(/^\[[^\[\]]+\]/, function (a) {
return '<span class="prefix ' + lang_vi(a) + '">' + a.slice(1,-1) + "</span>"
})
});
});
Similar topics
Permissions in this forum:
You can reply to topics in this forum