User:Evad37/duplinks-alt.js: Difference between revisions

Content deleted Content added
update to var $content = isVisualEditor ?, requested on talk
selector change requested on talk
 
Line 20:
// Move the elements containing the lead content into this newly-created div
$lead.nextAll().each( function() {
if ( $(this).nodeName.toLowerCaseis() == 'h2, .mw-heading2') ) {
// Reached the first heading after the lead.
// Returning false breaks out of the jQuery .each() loop early