你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/482771-malayala-kit,源站連結 點此以跳轉。
MalayalaKit: JavaScript library for creating customizable web menus with tabs, buttons, switches, and input elements.
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.org.cn/scripts/482771/1299275/Malayala%20Kit.js
var kit = new MalayalaKit.CreateMenu({
title: "MalayalaKit",
icon: "",
size: { width: 500, height: 400 },
position: { top: 50, left: 50 },
hotkey: { keyCode: 77, ctrlKey: true, altKey: false, shiftKey: false }
});
var general = new MalayalaKit.Tab("General");
general.addButton({ label: "Buton Label", buttonLabel: "Buton Text", onclick: function () {
alert("Clicked");
}
});
general.addSwitch({ label: "Switch Label", value: true, onchange: function (value) {
alert("Switch value: " + value);
}
});
kit.addTab(general);
var tab2 = new MalayalaKit.Tab("Tab 2");
tab2.addButton({ buttonLabel: "Hide", onclick: function () {
kit.toggleMenu();
}
});
kit.addTab(tab2);
kit.render();