MediaWiki:Vector-2022.js

This is an old revision of this page, as edited by Jon (WMF) (talk | contribs) at 22:52, 10 March 2023 (phab:T331742 error log shows this is occurring at a high rate 20k page views every 5 minutes so short term fix seems warranted). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
// Temporary fix for T331742 - can be removed Saturday March 18th 2023 or later.
if ( !(
    document.documentElement.classList.contains('vector-feature-toc-pinned-enabled') ||
    document.documentElement.classList.contains('vector-feature-toc-pinned-disabled')
    )
) {
    $(function () {
        $('.vector-page-titlebar-toc,.vector-toc-landmark').show();
        $('#vector-toc').css('min-width', '320px');
        $('#vector-toc .vector-pinnable-header-toggle-button').hide()
    });
}