function AMQ_createInstalledWindow() {
    if (!window.setupDocumentDone) return;
    if ($("#installedModal").length === 0) {
        $("#gameContainer").append($(`
            <div class="modal fade" id="installedModal" tabindex="-1" role="dialog">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">×</span>
                            </button>
                            <h2 class="modal-title">Installed Userscripts</h2>
                        </div>
                        <div class="modal-body" style="overflow-y: auto;max-height: calc(100vh - 150px);">
                            <div id="installedContainer">
                                You have the following scripts installed (click on each of them to learn more)<br>
                                This window can also be opened by going to AMQ settings (the gear icon on bottom right) and clicking "Installed Userscripts"
                                <div id="installedListContainer"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        `));

        $("#mainMenu").prepend($(`
            <div class="button floatingContainer mainMenuButton" id="mpInstalled" data-toggle="modal" data-target="#installedModal">
                <h1>Installed Userscripts</h1>
            </div>
        `))
        .css("margin-top", "20vh");

        $("#optionsContainer > ul").prepend($(`
            <li class="clickAble" data-toggle="modal" data-target="#installedModal">Installed Userscripts</li>
        `));

        AMQ_addStyle(`
            .descriptionContainer {
                width: 95%;
                margin: auto;
            }
            .descriptionContainer img {
                width: 80%;
                margin: 10px 10%;
            }
        `);
    }
}
/*
Creates the installed scripts window if it doesn't exist and adds "Installed Userscripts" button to the main page and settings
*/
Creates the installed scripts window if it doesn't exist and adds "Installed Userscripts" button to the main page and settings
Creates the installed scripts window if it doesn ' t exist and adds " Installed Userscripts " button to the main page and settings
function AMQ_createInstalledWindow() {
    if (!window.setupDocumentDone) return;
    if ($("#installedModal").length === 0) {
        $("#gameContainer").append($(`
            <div class="modal fade" id="installedModal" tabindex="-1" role="dialog">
                <div class="modal-dialog" role="document">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                <span aria-hidden="true">×</span>
                            </button>
                            <h2 class="modal-title">Installed Userscripts</h2>
                        </div>
                        <div class="modal-body" style="overflow-y: auto;max-height: calc(100vh - 150px);">
                            <div id="installedContainer">
                                You have the following scripts installed (click on each of them to learn more)<br>
                                This window can also be opened by going to AMQ settings (the gear icon on bottom right) and clicking "Installed Userscripts"
                                <div id="installedListContainer"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        `));
        $("#mainMenu").prepend($(`
            <div class="button floatingContainer mainMenuButton" id="mpInstalled" data-toggle="modal" data-target="#installedModal">
                <h1>Installed Userscripts</h1>
            </div>
        `))
        .css("margin-top", "20vh");
        $("#optionsContainer > ul").prepend($(`
            <li class="clickAble" data-toggle="modal" data-target="#installedModal">Installed Userscripts</li>
        `));
        AMQ_addStyle(`
            .descriptionContainer {
                width: 95%;
                margin: auto;
            }
            .descriptionContainer img {
                width: 80%;
                margin: 10px 10%;
            }
        `);
    }
}
function AMQ_createInstalledWindow ( ) { if ( ! window . setupDocumentDone ) return ; if ( $ ( "#installedModal" ) . length === 0 ) { $ ( "#gameContainer" ) . append ( $ ( ` ` ) ) ; $ ( "#mainMenu" ) . prepend ( $ ( ` ` ) ) . css ( "margin-top" , "20vh" ) ; $ ( "#optionsContainer > ul" ) . prepend ( $ ( ` ` ) ) ; AMQ_addStyle ( ` ` ) ; } }
Creates the installed scripts window if it doesn't exist and adds "Installed Userscripts" button to the main page and settings
Creates the installed scripts window if it doesn ' t exist and adds " Installed Userscripts " button to the main page and settings