16,975
edits
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
for (var i = 0; i < textAreas.length; i++) { | for (var i = 0; i < textAreas.length; i++) { | ||
if ($(textAreas[i]).length) | if ($(textAreas[i]).length) | ||
$(textAreas[i]).val($(textAreas[i]).val().replace(/[\u200B-\u200F\uFEFF]/g, '' | $(textAreas[i]).val($(textAreas[i]).val().replace(/[\u200B-\u200F\uFEFF]/g, '')); | ||
} | } | ||
} | } | ||
$(function() { | $(function() { | ||
if (['edit', 'submit'].includes(mw.config.get('wgAction')) && ![8 | if (['edit', 'submit'].includes(mw.config.get('wgAction')) && ![8, 274, 828, 2300].includes(mw.config.get('wgNamespaceNumber'))) { | ||
$('.editButtons input').click(unicodeFixer); | $('.editButtons input').click(unicodeFixer); | ||
if ($('body.skin-minerva').length) | if ($('body.skin-minerva').length) |