MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,369: | Line 1,369: | ||
}); | }); | ||
/*----------------------------8-6-2026---------------------------------------*/ | /*----------------------------8-6-2026---------------------------------------*/ | ||
$(function () { | $(window).on('load', function () { | ||
if (mw.config.get('skin') !== 'minerva') { | if (mw.config.get('skin') !== 'minerva') { | ||
return; | return; | ||
} | } | ||
setTimeout(function () { | |||
var author = document.querySelector( | |||
'.mw-parser-output > p span[style*="float:right"]' | |||
); | |||
var poem = document.querySelector( | |||
'.mw-parser-output > .Poem2-Ekatra' | |||
); | |||
if (author && poem) { | |||
var p = author.closest('p'); | |||
poem.parentNode.insertBefore(p, poem.nextSibling); | |||
console.log('Author block moved'); | |||
} else { | |||
console.log('Not found', author, poem); | |||
} | |||
}, 1000); | |||
}); | }); | ||