4) Remove the legacy loader creation in runExtensionFeatures
You don’t want the old localStorage loader anymore, so in runExtensionFeatures:

What I have for that is mostly comment out, when making the extension function without activation?

So removing the below and replacing with the code you provided?


function runExtensionFeatures() {

    /*

    // === Create and insert overlay ASAP === | Removed for sync
    let loader = document.createElement('div');
    loader.id = 'custom-loader';
    loader.textContent =
    localStorage.getItem('overlayMessage') ||
    'Boards.ie Cleaner | Thanks for supporting the site | Loading...';
    document.documentElement.appendChild(loader);
    document.documentElement.classList.add('overlay-hide');

     */

    /*
    // Remove Boards.ie warning banner & similar
    function removeWarning() {
    document
    .querySelectorAll('.DismissMessage.WarningMessage, .DismissMessage.AlertMessage')
    .forEach(el => el.remove());
    }

    removeWarning();
     */

    // Inject ad-hiding CSS (disabled for store friendliness)
    /*
    (function() {
    const adsStyle = document.createElement('style');
    adsStyle.textContent = '.mid-ad, .ad-container, .ad-text { display: none !important; }';

    document.head.appendChild(adsStyle);
    })();
     */