Proibindo códigos maliciosos em seu chatbox/shoutbox.
Código:
Código:
- Código:
/*#PLUGIN# =====================================================================================================================
Name ..........: msg( )
Description ...: Proibe table, td, th, scroll e tr no chatbox.
Syntax ........: nenhuma
Parameters ....: document.getElementById - gera um elemento com a id.
innerhtml - procura no elemento com a id.
find - procura algo.
remove - retira alguma coisa.
Return values .: nenhum
Author ........: BangBang
Modified ......:
Remarks .......:
Related .......:
Link ..........:
Example .......: .find('table td th scroll tr').remove();
===============================================================================================================================*/
function msg() {
document.getElementById(‘#chatbox #frame_chatbox #iframe_shoutbox table td th scroll tr’).find('.msg').innerHTML = ‘[table style="display: block; float: top; position: top; text-align: top;"][/table]’;
$(this).find('table td th scroll tr').remove();
}