6
Author: iamrbn
Downloads: 53
Stars: 6
Type: Home Screen Widget
Published on: 20 July 2022
This widget shows your Karma, Cakeday and Profile Image on your home and lockscreen
Karma Widget
This version of the widget shows your last Post on your home and lockscreen
Last Post Widget
/*...*/
) to the default value) (e.g. 1494 = 1.494K; 20567 = 20.57K; 1000000 = 1M etc.)
The Widget has a Dynamic Gradient Background
The error widget is displayed if you have not yet entered any user credentials or if there is no response from the reddit API.
Reasons for this could be, for example, no internet connection.
Today is your Cakeday!? The widget will tell you subtly.
Official Reddit API Guidelines: https://github.com/reddit-archive/reddit/wiki/OAuth2
Login to your Account and go to https://old.reddit.com/prefs/apps/
Create new Personal Script
Click Checkbox "script" and set a redirect uri (e.g. same as in the image)
Create App
Copy Client_ID & Client_Secret
Run Script in-app and enter your created user credentials
You can set your own constants at the top of the script
// ===========================================
// ========== START CONFIG ZONE ==============
let refreshInt = 60 //refreshinterval as number in minutes
let showNotifyBadge = true //all home-widget sizes
let showUserTitle = false //medium- & large widget
let numberFormatting = 'de-DE' //For karma valuese. e.g.: en-EN, en-IN etc.
let widgetIcon = 'alienblue' //small- & medium widget; available icons: alienblue, black, classic, orange, roundorange, oldReddit, reddit, apollo;
let widgetType = 'karma' //karma or post
// =========== END CONFIG ZONE ================
//=============================================
You can set Karma
or Post
individual in each Widgets.
'Karma' is not for the rectangular lockscreen widget available!
By running the scirpt In App it will present a menu with the following options.
'Report Bug' Saves just a JSON with the reddit API response. You've to share it manually to get help!
It will Downloads and Save the Following Symbols and a JavaScript Module at the directory "Reddit-Widget"
iCloud Drive/
├─ Scriptable/
│ ├─ Reddit-Widget/
│ │ ├─ redditModule.js
│ │ ├─ karma.png
│ │ ├─ cakedayApollo.png
│ │ ├─ cakedayConfetti.png
│ │ ├─ snoovatar_xxx.png
│ │ ├─ oldReddit.png
│ │ ├─ classic.png
│ │ ├─ orange.png
│ │ ├─ black.png
│ │ ├─ alienblue.png
│ │ ├─ arrowsLS.png
│ │ ├─ redditLS.png
---- alternative symbols ----
│ │ ├─ cakedayReddit.png
│ │ ├─ apollo.png
[^1]:Function is written by the amazing @mvan231 - Thx for your Support