User:Erutuon/scripts/footnoteCleanup.js: Difference between revisions

Content deleted Content added
undefined variable
wrong namespace
Line 1:
var namespaceNumber = mw.config.values.wgNamespaceNumber;
 
if ( namespaceNumber === 10 )
{
$("#editform").prepend('<div id="footnote-cleanup"><a href="javascript:cleanupFootnotes()">clean up footnotes</a></div>');