User:DannyS712/SectionMover.js: Difference between revisions

Content deleted Content added
m Flooded with them hundreds moved page User:Flooded with them hundreds/SectionMover.js to User:Flooded with them hundreds/sectionmover.js without leaving a redirect: lower
x
Line 10:
}
$( 'head' ).append(
'<style>a.arkylinkarxylink { font-weight:bold } .arkyhighlightarxyhighlight { background-color:#aef9fc }</style>'
);
 
Line 24:
overlay = $( document.createElement( 'button' ) );
$( startMoveButton ).click( function ( e ) {
$( '.arkylinkarxylink' ).click();
$( '.arkyarxy' ).toggle();
$( '#Movebutton' ).toggle();
} );
Line 45:
cutOffset = numOfThreads = 0;
revisedPage = wikiText;
sections = $( 'a.arkylinkarxylink' ).map( function () {
return $( this ).attr( 'data-section' );
} );
Line 153:
if ( validSections.hasOwnProperty( sectionNumber ) ) {
editSection[ 0 ].innerHTML += '&nbsp;'
+ '<span class=arkyarxy style=display:none>'
+ '<span class=mw-editsection-bracket>[</span>'
+ '<a data-section=' + sectionNumber + ' '
+ 'onclick=$(this).closest(\':header\').toggleClass(\'arkyhighlightarxyhighlight\');$(this).toggleClass(\'arkylinkarxylink\');>'
+ 'archive</a>'
+ '<span class=mw-editsection-bracket>]</span>'