ShareShortcuts

PİL TASARRUF MODU UPDATER

majorata
Bifurcar “PİL TASARRUF MODU UPDATER”

¿Creaste algo nuevo a partir de este atajo? Compártelo como bifurcación: se convierte en un atajo tuyo, que tú administras, y ambas páginas se enlazan entre sí para que majorata reciba el crédito.

  1. 1Obtén el atajo y modifícalo en la app Atajos. Ponle un nombre propio.
  2. 2Compártelo desde la app Atajos y copia el enlace de iCloud.
  3. 3Vuelve aquí, pega el enlace y describe qué es diferente, p. ej., “Se añadió un paso que usa Apple Intelligence para personalizar el texto”.
Descargas
36K
Guardado
0
Acciones
30
Categoría
Utilities
Versión
2.0
Idioma
EN

Vista previa

Auto pil tasarruf modu kestirmesinin güncellemelerini ve değişikliklerini bu kestirme ile çekebilirsiniz. Ayrıca size versiyon değişikliği ve nelerin değiştiğini gösterecektir

Novedades

Versión 2.0

Güncel

Historial de versiones
2.0 17 de ene. de 2023

Güncel

1.0 17 de ene. de 2023

First release

Qué hace

30 acciones
  1. Dictionary
  2. Repeat
  3. Set Variable
    LocalData
  4. Get IP Address
  5. Count
  6. If
  7. Show Alert
  8. If
  9. URL
    https://routinehub.co/api/v1/shortcuts/…/versions/latest
  10. Get Contents of URL
    …
  11. If
  12. Dictionary
  13. Text
  14. URL
    data:text/html,…
  15. Get Contents of Web Page
  16. If
  17. Show Alert
    ExLow Power Mode is up to date
  18. If
  19. If
  20. Text
  21. If
  22. Text
  23. Choose from Menu
    … … Güncellemeler devam edecektir, takipte kalın 👀
  24. Choose from Menu
    İndir result (Version)
  25. URL
    https://routinehub.co/download/…
  26. Open URLs
  27. Stop and Output
  28. Choose from Menu
    Yenile
  29. If
  30. Show Alert

Ver como código
Beta

Todas las acciones de este atajo escritas en Cherri, un lenguaje de programación para Atajos. Ideal para aprender cómo funciona.

#include 'actions/web'
#include 'actions/network'
#define color red
#define glyph networkStorage


repeat _ for 3 {
	@LocalData = {
	"ID": "13943",
	"Version": "4.2"
}
	const CurrentIPAddress = getExternalIP()
	const Count = count(CurrentIPAddress)
	if Count == 0 {
		confirm("Güncellemeler kontrol edilemedi, internet bağlantısı yok.")
	} else {
		url("https://routinehub.co/api/v1/shortcuts/{@LocalData['ID']}/versions/latest")
		const result = downloadURL()
		if result contains "success" {
			const CompareVersionsData = {
				"current": "{@LocalData['Version']}",
				"new": "{result['Version']}"
			}
			const CompareVersionsHTML = "<html><head></head><body><script>\n// Embed-a-Engine 1.0\nfunction cmp (a, b) {\nlet pa = a.split('.');\nlet pb = b.split('.');\nfor (let i = 0; i < Math.max(pa.length, pb.length); i++) {\nlet na = Number(pa[i]);\nlet nb = Number(pb[i]);\nif (isNaN(na)) na = 0;\nif (isNaN(nb)) nb = 0;\nif (na > nb) return \\"RollbackAvailable\\";\nif (nb > na) return \\"UpdateAvailable\\";\n}\nreturn \\"NoChanges\\";\n};\nlet data = {CompareVersionsData};\ndocument.write(cmp(data.current, data.new));\n</script></body></html>"
			url("data:text/html,{CompareVersionsHTML}")
			const ContentsOfWebPage = getWebpageContents()
			if ContentsOfWebPage == "NoChanges" {
				alert("", "ExLow Power Mode is up to date")
			} else {
				if ContentsOfWebPage == "RollbackAvailable" {
				} else {
				}
				menu "{}\n\n{result['Notes']}\nGüncellemeler devam edecektir, takipte kalın 👀 " {
				item "İndir {result['Version']}":
					const URL = url("https://routinehub.co/download/{result['id']}")
					openURL(URL)
					output(URL)
				item :
				}
			}
		} else {
			alert("\nBir RoutineHub hatası nedeniyle güncellemeler kontrol edilemedi:", "")
		}
	}
}
Abrir en Cherri Playground Descompilado con cherri 2.3.0 (GPL-2.0). Puede que necesite pequeños ajustes antes de compilarse.

Valoraciones y reseñas

Escribe una reseña
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aún no hay reseñas. ¡Sé el primero en compartir tu opinión!

Publicidad

Más de majorata

Ver todo

También te puede gustar

Ver todo
Publicidad