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

Content deleted Content added
beginning
 
attempt to create a cleanup footnotes button
Line 1:
varif ( namespaceNumber === 1 mw.config.values.wgNamespaceNumber;)
{
var textbox = $("#wpTextbox1");
$("#editform").prepend('<div id="footnote-cleanup"><a href="javascript:cleanupFootnotes()">clean up footnotes</a></div>');
}
 
function cleanupFootnotes()
if ( textbox && namespaceNumber === 1 ) {
{
var namespaceNumber = mw.config.values.wgNamespaceNumber;
var textbox = $("#wpTextbox1");
if ( textbox )
{
}
}