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

Content deleted Content added
oops
test initial content
Line 56:
);
var hasChangedisUnchanged = ( oldContents === contents );
if ( hasChangedisUnchanged )
{
mw.notify("No misplaced footnotes were found.");
Line 66:
$("#wpSummary").val(function(index, summary)
{
mw.notify(summary);
var addition = "made sure refs are after punctuation with [[User:Erutuon/footnoteCleanup.js|JavaScript]]";
afterSectionName = summary.match(/^\/\*[^\*]+\*\/\s+(.+)/);
if ( afterSectionName && afterSectionName[1].length > 1 )
{
Line 74 ⟶ 77:
}
if ( !hasChangedisUnchanged )
{
return content + addition;