Skip to content

Instantly share code, notes, and snippets.

View OriginalJef's full-sized avatar

Jef OriginalJef

  • In The Pocket
  • Ghent
View GitHub Profile
OriginalJef / dad-jokes-widget.js
Last active October 9, 2020 13:43
Scriptable widget for random dad Jokes
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
const url = ``
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {
// create and show widget
let widget = createWidget("Dad Joke", `${res.attachmenets[0}.fallback`, "#35363A")