rob4iks3gmail.com / SmartBear1A 2.0 Create New

// ==UserScript==
// @name         SmartBear1A 2.0 Create New
// @namespace    http://tampermonkey.net/
// @version      3.0
// @description  SmartBear1A 2.0 Create New
// @author       Robis
// @match        smartbear.1a.lv/products/create*
// @grant        none
// @license      GPL-3.0
// ==/UserScript==

(function () {
    'use strict';

    function nameMenuCheatSheet() {
        //Variables
        var mainButton = document.createElement('span'), //Menu Button
            mainWindow = document.createElement('div'), //Menu Window
            productNameField = document.getElementById('product_name'); //Product Name Field

        //Menu Button
        mainButton.className = ('navigationStyle');
        mainButton.id = ('mainButton');
        mainButton.innerHTML = ('Menu');

        //Menu Window
        mainWindow.id = "mainWindow";
        mainWindow.innerHTML = ('<h2 style="text-align:center;margin-top:0px;">Nosaukumu paraugi</h2>' +
            'SSD - Samsung 960 PRO 2TB PCIE M.2 MZ-V6P2T0BW<br/>' +
            'HDD - Toshiba P300 2TB 7200RPM SATA III 64MB HDWD120EZSTA<br/>' +
            'CPU - IntelĀ® CeleronĀ® G1820T 2.4GHz 2MB TRAY CM8064601482617<br/>' +
            'RAM - Corsair Vengeance LPX 8GB 2133MHz CL13 DDR4 DIMM KIT OF 2 CMK8GX4M2A2133C13<br/>' +
            'MicroSD cards - Goodram 128GB SDXC UHS-I Class 10<br/>' +
            'PSU - Enermax Revolution SFX 550W ERV550SWT<br/>' +
            'GPU - Gigabyte GeForce GTX1050 OC Low Profile 2GB GDDR5 PCIE GV-N1050OC-2GL<br/>' +
            'Case - NZXT H230 Mid-Tower ATX White CA-H230I-W1'
        );


        //Appending Elements
        productNameField.parentNode.appendChild(mainButton);
        productNameField.parentNode.appendChild(mainWindow);

        //Menu button toggler
        $(function () {
            $("#mainButton").click(function () {
                $("#mainWindow").toggle('fast');
            });
        });
    }


    //Activation of Scripts
    nameMenuCheatSheet();
})();