[go: up one dir, main page]

0% found this document useful (0 votes)
1K views1 page

Full Đỏ by Hoang Tu.scriptable 2

The document describes a script for a widget named 'Full Đỏ By Hoang Tu', which features a customizable menu with options and icons. It includes a password protection mechanism for activating selected options, with visual elements like a background image and gradient. The script is designed to run in a specific app environment and can present a user interface or set a widget based on the configuration.

Uploaded by

leducem78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views1 page

Full Đỏ by Hoang Tu.scriptable 2

The document describes a script for a widget named 'Full Đỏ By Hoang Tu', which features a customizable menu with options and icons. It includes a password protection mechanism for activating selected options, with visual elements like a background image and gradient. The script is designed to run in a specific app environment and can present a user interface or set a widget based on the configuration.

Uploaded by

leducem78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

{

"always_run_in_app" : false,
"icon" : {
"color" : "deep-blue",
"glyph" : "magic"
},
"name" : "Full Đỏ By Hoang Tu",
"script" : "let widget = new ListWidget();\nlet url =
\"https:\/\/media.giphy.com\/media\/qs4ll1FSxKnNHeSmom\/giphy.gif\"; \nlet req =
new Request(url);\nlet img = await req.loadImage();\nwidget.backgroundImage = img;\
n\n\nlet gradient = new LinearGradient();\ngradient.colors = [new
Color(\"#000000\", 0.8), new Color(\"#434343\", 0.6)];\ngradient.locations = [0.0,
1.0];\nwidget.backgroundGradient = gradient;\n\n\nlet overlay = widget.addStack();\
noverlay.layoutVertically();\noverlay.size = new Size(320, 160);\
noverlay.cornerRadius = 15;\noverlay.setPadding(15, 15, 15, 15);\
noverlay.backgroundColor = new Color(\"#000000\", 0.5);\noverlay.shadowColor = new
Color(\"#000000\", 0.5);\noverlay.shadowOffset = new Point(0, 5);\
noverlay.shadowRadius = 10;\n\n\nlet title = overlay.addText(\"Scriptable Menu\");\
ntitle.textColor = Color.red();\ntitle.font = Font.boldSystemFont(18);\
ntitle.centerAlignText();\n\noverlay.addSpacer(15);\n\nlet options = [\"Sensi
Max\", \"Config\", \"Sensi Ultra\", \"Aimlock\", \"Zalo Của Tớ\"];\nlet icons =
[\"⚙️\", \"\", \"🎯\", \"🤖\", \"📱\"];\nlet actions =
[\"\", \"\", \"\", \"\", \"https:\/\/zalo.me\/0927921520\"];\n\nlet rainbowColors =
[\n Color.red(), Color.orange(), Color.yellow(), Color.green(),\n Color.cyan(),
Color.blue(), Color.purple()\n];\n\nlet correctPassword = \"HoangTu\"; \nasync
function requestPassword() {\n let alert = new Alert();\n alert.title = \"Nhập
mật khẩu\";\n alert.addSecureTextField(\"Mật khẩu\", \"\");\n
alert.addAction(\"OK\");\n alert.addCancelAction(\"Hủy\");\n\n let response =
await alert.presentAlert();\n if (response === -1) return null; \/\/ Hủy\n\n
return alert.textFieldValue(0);\n}\n\nif (args.queryParameters.option) {\n let
option = args.queryParameters.option;\n let password = await requestPassword();\n
if (password !== null && password === correctPassword) {\n let alert = new
Alert();\n alert.title = \"Kích hoạt thành công\";\n alert.message = `Bạn đã
chọn: ${option}`;\n alert.addAction(\"OK\");\n await alert.present();\n if
(option === \"Zalo Của Tớ\") {\n
Safari.openInApp(actions[options.indexOf(option)], true);\n }\n \/\/Code Make
By Support HoangTu Zalo\n } else {\n let alert = new Alert();\n alert.title
= \"Sai mật khẩu\";\n alert.message = \"Mật khẩu không chính xác.\";\n
alert.addAction(\"OK\");\n await alert.present();\n }\n}\n\nfor (let i = 0; i <
options.length; i++) {\n let stack = overlay.addStack();\n
stack.layoutHorizontally();\n stack.centerAlignContent();\n\n let icon =
stack.addText(icons[i] + \" \");\n icon.textColor = Color.white();\n icon.font =
Font.systemFont(14);\n\n let optionStack = stack.addStack();\n for (let j = 0; j
< options[i].length; j++) {\n let char = options[i][j];\n let charWidget =
optionStack.addText(char);\n charWidget.textColor = rainbowColors[j %
rainbowColors.length];\n charWidget.font = Font.systemFont(14);\n }\n\n \/\/
0927921520\n let urlScheme = `scriptable:\/\/\/run?scriptName=$
{encodeURIComponent(Script.name())}&option=${encodeURIComponent(options[i])}`;\n
stack.url = urlScheme;\n \n overlay.addSpacer(8); \n}\n\nif (config.runsInWidget)
{\n Script.setWidget(widget);\n} else {\n widget.presentMedium();\n}\
nScript.complete();",
"share_sheet_inputs" : [

]
}

You might also like