User:Ahecht/Scripts/pageswap 1.5.2.js: Difference between revisions

Content deleted Content added
 
Replace 'mw-message-box-error' per phab:T374499
 
Line 670:
if (mw.config.get("wgCanonicalSpecialPageName") == "Movepage" &&
$( "div.mwcdx-message-box-error" ).find( "p" ).eq(1).is( ":contains('name already exists')" ) &&
wpOldTitle)
{
$( "div.mwcdx-message-box-error" ).find( "p" ).eq(2).html( 'Please choose another name, or perform a <a title="Perform a revision history swap / round-robin move" href="#" id="pageswapLink">swap</a>.' );
$( "#pageswapLink" ).click(function(e) {
e.preventDefault();