lib-iitc-manager
    Preparing search index...

    Function wrapPluginCode

    • Wraps plugin code in an IIFE with GM API bindings.

      The wrapped code calls window.GM({ data_key, meta }) to obtain a GM API instance, then exposes GM_info, GM_getValue, GM_setValue, GM_xmlhttpRequest, etc. as local variables available to the plugin code.

      Parameters

      • plugin: Plugin

        Plugin object from lib-iitc-manager.

      • source_url_prefix: string = ''

      Returns string

      Wrapped plugin code ready for injection.