Created
June 25, 2025 14:06
-
-
Save luisadha/1e8c60502a0c8e3e8e848d77dd2e4623 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"categories": [ | |
{ | |
"id": "013d3b3d-b8bf-402e-bee8-022c6a925983", | |
"layoutType": "wide_grid", | |
"name": "API", | |
"sections": [ | |
{ | |
"id": "adcdd760-09a4-4331-bb75-5ba3c8aefec9", | |
"name": "Developer \u003e API \u003e Services" | |
} | |
], | |
"shortcutClickBehavior": "run", | |
"shortcuts": [ | |
{ | |
"codeOnPrepare": "let say \u003d \"Hello,\";\nconst detectLang \u003d () \u003d\u003e getVariable(/*[variable]*/\"fb51a292-5210-4302-9eba-098401741b00\"/*[/variable]*/);\nconst now \u003d new Date();\nconst lastSeen \u003d getVariable(/*[variable]*/\"d8adc7c5-f43e-4f7f-9eae-699c93dc657c\"/*[/variable]*/);\n\nchangelog \u003d \"VERSION 1.0.0: first release\\n\" +\n\"VERSION 1.0.1: Adjust [~] The code structure to make it neater\\n\" +\n\"VERSION 1.0.2: Adjust [~] Bugs fixed\\n\" +\n\"VERSION 1.2.0: Added [+] multi messages features\\n\" +\n\"VERSION 1.3.0: Added [+] multi number phone for random pick\\n\" +\n\"VERSION 2.0.0: Added [+] Major feature - multilingual message support (EN \u0026 ID)\\n\" +\n\"VERSION 2.0.1: Adjust [~] Fixed OK/Cancel confirmation issue inconsistency with user default language settings\\n\" +\n\"VERSION 2.1.1: Added [+] Timestamp and Dont Show This Again Popup\\n\" +\n\"VERSION 2.1.2: Added [+] Check if users PRO\\n\" +\n\"VERSION 2.1.6: Adjust [~] Refactor to useable with OOP\\n\" +\n\"VERSION 2.1.7: Adjust [~] Fix bug Tap out of Window\";\n//alert(changelog);\n// Inisialisasi jika belum ada\nif (getVariable(/*[variable]*/\"acddf938-33a7-4e47-aa20-930e70d75509\"/*[/variable]*/) \u003d\u003d\u003d null || getVariable(/*[variable]*/\"acddf938-33a7-4e47-aa20-930e70d75509\"/*[/variable]*/) \u003d\u003d\u003d undefined) {\n setVariable(/*[variable]*/\"acddf938-33a7-4e47-aa20-930e70d75509\"/*[/variable]*/, 0);\n}\n\n// Membuat timestamp jika lastSeen \u003d null\nif (!lastSeen || (new Date(now) - new Date(lastSeen)) \u003e 86400000) {\n setVariable(/*[variable]*/\"acddf938-33a7-4e47-aa20-930e70d75509\"/*[/variable]*/, 0);\n}\n\n// Tampilkan DSTA jika belum pernah disembunyikan\nif (getVariable(/*[variable]*/\"acddf938-33a7-4e47-aa20-930e70d75509\"/*[/variable]*/) !\u003d 1) {\n const dstaPopup \u003d showDialog(changelog, \u0027Changelog\u0027, {\n buttons: [\u0027Don\\\u0027t show this again\u0027]\n });\n\n if (dstaPopup.result \u003d\u003d \u0027button1\u0027) {\n setVariable(/*[variable]*/\"acddf938-33a7-4e47-aa20-930e70d75509\"/*[/variable]*/, 1);\n\t\tsetVariable(/*[variable]*/\"d8adc7c5-f43e-4f7f-9eae-699c93dc657c\"/*[/variable]*/, now.toISOString());\n }\n}\n\n/* Memuat 2 versi */\n\nclass Pengguna {\n\tconstructor(number) {\n\t\tthis.number \u003d number;\n\t};\n\tgetTimeGreeting() {\n const hour \u003d new Date().getHours();\n const waktu \u003d hour \u003c 12\n ? \"Good morning\"\n : hour \u003c 18\n ? \"Good afternoon\"\n : \"Good evening\"; \nconst pesanPertama \u003d messagesGreet.get(\u0027messages_reminder\u0027)[detectLang()];\n return `${waktu}! ${pesanPertama} makan`;\n\t};\n\tsendGreeting() {\n const msg \u003d this.getTimeGreeting();\n openUrl(`https://wa.me/${this.number}?text\u003d${encodeURIComponent(msg)}`);\n };\n}\n\nclass PenggunaPro extends Pengguna {\n\tconstructor(number) {\n\tsuper(number);\n\t};\n\tfiturPro() {\n\treturn \"Fitur pro\";\n\t};\n\tsendSecondMessage() {\n const pesanKedua \u003d String(say) + \" \" + messagesGreet.get(\u0027messages_second\u0027)[detectLang()] \n\topenUrl(`https://wa.me/${this.number}?text\u003d${encodeURIComponent(pesanKedua)}`);\n };\n}\n\nconst waNumber \u003d getVariable(/*[variable]*/\"b847c573-524a-4441-94be-b0ae19c7285d\"/*[/variable]*/);\n\nlet dice;\nlet isPro \u003d false;\ntry {\n const dice \u003d require(\u0027.randanom\u0027); // kalau ini berhasil, tandai PRO\n isPro \u003d true;\n} catch {\n isPro \u003d false;\n}\n\nif (!isPro) {\t\t /* User biasa */\nsetVariable(/*[variable]*/\"b847c573-524a-4441-94be-b0ae19c7285d\"/*[/variable]*/, prompt(`${appName} (FREE)`, \"Masukan nomer whatsapp tujuan \"));\n\tconst waNumber \u003d getVariable(/*[variable]*/\"b847c573-524a-4441-94be-b0ae19c7285d\"/*[/variable]*/);\n const biasa \u003d new Pengguna(waNumber);\n biasa.sendGreeting();\n benefit \u003d \"Beli versi PRO untuk menghilangkan iklan, Benefit yang didapatkan: \\n\" + \"\\n\" +\n\"✅ Hapus iklan dalam aplikasi\\n\" +\n\"✅ Template pesan hingga 2 pesan \\n\" +\n\"✅ Broadcast pesan hingga 5 nomer pengguna whatsap\\n\" +\n\"✅ 2 Variasi pesan dalam bahasa Inggris dan Indonesia\\n\" +\n\"✅ Mendapatkan pemberitahuan pembaruan setiap minggu\\n\";\nalert(benefit);\nabort();\n\n} else {\t\t\t\t\t\t/* Bagian Pengguna PRO */\n\n\t\tif (getVariable(/*[variable]*/\"0b83ecc2-8fa6-4958-9004-c961099c09a3\"/*[/variable]*/) \u003c 5) {\n\t\t\talert(\"Anda belum memasukan semua nomer!\")\n\t\t\tabort();\n\t\t};\n\n\tconst waNumber \u003d getVariable(/*[variable]*/\"b847c573-524a-4441-94be-b0ae19c7285d\"/*[/variable]*/);\n const pro \u003d new PenggunaPro(waNumber);\n\tconst terkirim \u003d messagesGreet.get(\u0027messages_sent\u0027)[detectLang()]\n\tconst messagesConfirm \u003d messagesGreet.get(\u0027popup\u0027)[detectLang()]\n\tconst button_1 \u003d messagesGreet.get(\u0027messages_button\u0027)[detectLang()] + \" 1\";\n\tconst button_2 \u003d messagesGreet.get(\u0027messages_button\u0027)[detectLang()] + \" 2\";\n\tconst conFirm \u003d showDialog(\u0027 \u0027, messagesConfirm, {buttons: [button_1, button_2]});\n\n\tif (conFirm.result \u003d\u003d \u0027button1\u0027) {\n \t\t\tpro.sendGreeting(); // Fitur dasar (pengguna biasa)\t\n \t\talert(terkirim);\n\t} else if (conFirm.result \u003d\u003d \u0027button2\u0027) {\n \t\t\tpro.sendSecondMessage(); // Fitur eklusif (pengguna pro)\n\t\t\talert(terkirim);\n\t} else {\n\t\t showToast(\"Cancelled\");\n\t};\t\n}\n", | |
"description": "Kirim Pesan WhatsApp secara Broadcast!", | |
"executionType": "scripting", | |
"iconName": "freepik_indicator", | |
"id": "78500350-652e-4db4-8034-65e268f7fc24", | |
"name": "Sunie—Kirim Pesan WhatsApp tanpa menyimpan kontak", | |
"quickSettingsTileShortcut": true, | |
"secondaryLauncherShortcut": true, | |
"section": "adcdd760-09a4-4331-bb75-5ba3c8aefec9" | |
} | |
] | |
} | |
], | |
"compatibilityVersion": 90, | |
"createdAt": "2025-06-09T10:50:17.560446Z", | |
"globalCode": "//# define like C-style \n//const require \u003d executeShortcut;\n// Warna (File Manager) \u003d D1CE85\n// Warna (Bookmark) \u003d E4C4E6\nconst appName \u003d \"Sunie\"\nconst appVersion \u003d \"2.2.0\"\nconst appLibName \u003d \"Randanom\"\nconst appLibVersion \u003d \"1.2.0\"\nconst MAX_INDEX \u003d 5;\n/* Map Bahasa */\nconst messages \u003d new Map([\n [\u0027phoneNumberRetrieved\u0027, new Map([\n [\u0027id\u0027, \u0027Pesan berhasil terkirim ke nomer tujuan\u0027],\n [\u0027en\u0027, \u0027Mobile phone number successfully retrieved.\u0027]\n ])],\n [\u0027phoneNotFound\u0027, new Map([\n [\u0027id\u0027, \u0027Gagal mendapatkan info nomor\u0027],\n [\u0027en\u0027, \u0027Phone number not found.\u0027]\n ])],\n [\u0027phoneFound\u0027, new Map([\n [\u0027id\u0027, \u0027Gunakan nomor ini?\u0027],\n [\u0027en\u0027, \u0027Use this number?\u0027]\n ])],\n [\u0027skipNumber\u0027, new Map([\n [\u0027id\u0027, \u0027Nomor dilewati\u0027],\n [\u0027en\u0027, \u0027Number skipped\u0027]\n ])],\n [\u0027indexCount\u0027, new Map([\n [\u0027id\u0027, \u0027Index naik jadi\u0027],\n [\u0027en\u0027, \u0027Index increase to\u0027]\n ])],\n [\u0027numberStored\u0027, new Map([\n [\u0027id\u0027, \u0027Nomor disimpan\u0027],\n [\u0027en\u0027, \u0027Number stored\u0027]\n ])],\n\t[\u0027indexIncrease\u0027, new Map([\n\t\t[\u0027id\u0027, \u0027Mulai dari tempIndex\u0027],\n\t\t[\u0027en\u0027, \u0027Start from tempIndex\u0027]\n\t])]\n]);\n\nconst messagesGreet \u003d new Map([\n [\"messages_second\", {\n id: \"Semoga kamu baik-baik saja. Saya mencari info terbaru, kalau kamu punya waktu sebentar :)\",\n en: \"Hope you\u0027re doing well. I\u0027m looking for some updates if you have a moment :)\"\n }],\n [\"messages_reminder\", {\n id: \"Jangan lupa\",\n en: \"Don\u0027t forget to\"\n }],\n [\"popup\", {\n id: \"Pilih template pesan\",\n en: \"Choose message templates\"\n }],\n\t[\"messages_button\", {\n\t\tid: \"Pesan\",\n\t\ten: \"Messages\"\n\t}],\n [\"messages_sent\", {\n id: \"Pesan sudah dikirim\",\n en: \"Message has been sent\"\n }]\n]);", | |
"originDeviceId": "REPFJD29ZV", | |
"title": "░░░░░░░░░░░░░░░░░░░░░░░░░░░░░", | |
"variables": [ | |
{ | |
"id": "b847c573-524a-4441-94be-b0ae19c7285d", | |
"key": "phone", | |
"value": "Masukan nomer whatsapp tujuan " | |
}, | |
{ | |
"id": "0b83ecc2-8fa6-4958-9004-c961099c09a3", | |
"key": "tempIndex", | |
"value": "5" | |
}, | |
{ | |
"id": "fb51a292-5210-4302-9eba-098401741b00", | |
"key": "lang", | |
"value": "id" | |
}, | |
{ | |
"id": "acddf938-33a7-4e47-aa20-930e70d75509", | |
"key": "countOpenApp", | |
"value": "1" | |
}, | |
{ | |
"id": "d8adc7c5-f43e-4f7f-9eae-699c93dc657c", | |
"key": "countOpenApp_lastSeen", | |
"value": "2025-06-09T04:52:05.454Z" | |
} | |
], | |
"version": 91 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment