Skip to content

Instantly share code, notes, and snippets.

View scriptable_image_processor.js
// These three lines demonstrate how this code works.
let img = await Photos.fromLibrary()
let newImg = await processImage(img)
// This function takes an image and returns a processed image.
async function processImage(image) {
const imageId = "imageId"
const canvasId = "canvasId"
mzeryck / mz_invisible_widget.js
Last active May 4, 2021
A Scriptable script that creates "invisible" widget backgrounds based on your iOS wallpaper, and then either uses them as a Scriptable widget background or exports to your camera roll.
View mz_invisible_widget.js
// This widget was created by Max Zeryck @mzeryck
You can't add commit messages to gists, so I just want to say thanks to everyone who has used, modified,
and enjoyed this script. This version adds support for the iPhone 12 mini, thanks to arealhen for providing
a screenshot, and mintakka for a temporary solution.
// Widgets are unique based on the name of the script.
const filename = + ".jpg"
mzeryck / mz_calendar_widget.js
Last active Feb 6, 2021
A Scriptable widget that shows upcoming calendar events to mimic the built-in Calendar widget, with some modifications.
View mz_calendar_widget.js
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: calendar-alt;
// This widget was created by Max Zeryck @mzeryck
// Note: before using this script in a widget, change const TEST_MODE to true and run it in the Scriptable app.
// The app will prompt you to give calendar access, and then show a preview of the widget.
// Make sure to change it back to const TEST_MODE = false prior to adding it to a widget. Happy coding!