روساورة ليناو Admin
المساهمات : 132 تاريخ التسجيل : 08/09/2014 العمر : 26 الموقع : KYKYW1995@hotmail.com
| موضوع: كود زخرفة المواضيع ..! الأربعاء أبريل 22, 2015 7:04 am | |
|
آلسلـآآم عليگم و رحمة آلله و پرگآته گيف آلحآل اصدقاء ؟؟! آليوم چپت لگم گود زخرفةة آلگلـآم في آلمنتديآت آلگود يوضع في أگوآد آلچآفآ .. أتمنى يعچپگم آلرمز: var censorship = [ ["text", /ڪ/g, "گ"], ["text", /آ/g, "آ"], ["text", /پ/g, "پ"], ["text", /چ/g, "چ"] ]; function censorNode(a) { if(a.nodeType == 3) { for(var b in censorship) { if(censorship[b][0] === "text") { a.nodeValue = a.nodeValue.replace(censorship[b][1], censorship[b][2]) } } }else { if(a.nodeType == 1) { for(b in censorship) { a.hasAttribute(censorship[b][0]) && a.setAttribute(censorship[b][0], a.getAttribute(censorship[b][0]).replace(censorship[b][1], censorship[b][2])) } } if(a.hasChildNodes()) { a = a.childNodes; for(b = 0;b < a.length;b++) { censorNode(a[b]) } } } } $(function() { $("div.postbody div" + ($("body#phpbb").length ? ".content div" : $("#ipbwrapper").length ? ".post-entry div:not(.clear)" : $("#pun-foot").length ? ".entry-content div div:not(.clear)" : "")).each(function() { censorNode(this); for(var a in censorship) { censorship[a][0] === "html" && censorship[a][1].test($(this).html()) && $(this).html($(this).html().replace(censorship[a][1], censorship[a][2])) } }) }); | |
|