User:Joko2468/common.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump.
This code will be executed when previewing this page.
This code will be executed when previewing this page.
The accompanying .css page for this skin can be added at User:Joko2468/common.css.
// Change "Edit source" button text to "Edit"
$('#ca-edit a span').text('Edit');
// Disable the Vector 2022 scroll animation / sticky header
mw.hook('wikipage.content').add(function() {
// Remove the scroll event that animates the header
if (window.vectorScroll) {
window.vectorScroll.disconnect();
}
// Remove sticky class from body
document.body.classList.remove('vector--page-header-sticky');
// Reset header styles
const header = document.getElementById('mw-head-base');
if (header) {
header.style.position = 'static';
header.style.transform = 'none';
header.style.transition = 'none';
}
});
importScript( 'User:Anne drew/Veracity.js' ); // Backlink: [[User:Anne drew/Veracity.js]]