6
Author: iamrbn
Downloads: 50
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
1.4.1 Update Notes (January 17th 2024)
1.4 Update Notes (December 27th 2023)
1.3.1 Update Notes (December 19th 2023)
1.3 Update Notes (December 15th 2023)
/*...*/
) to the default value)1.2 Update Notes (July 20th 2022)
1.1 Update Notes (May 05th 2022)
(e.g. 1494 = 1.494K; 20567 = 20.57K; 1000000 = 1M etc.)
Known Issues
Next Update Includes (...maybe)
The Widget has a Dynamic Gradient Background
Change the background gradient to always Reddit Styled
You only have to change the position of the comment bracketsfrom:
//Standard dynamic colors for background gradient
let top = Color.dynamic(new Color('#ffffff'), new Color('#0F2D60'))
let middle = Color.dynamic(new Color('#EDEDED'), new Color('#000427'))
let bottom = Color.dynamic(new Color('#D4D4D4'), new Color('#000000'))
/*
//Orange background gradient like the official reddit app icon
let top = new Color('#FF8420')
let middle = new Color('#FD3F12')
let bottom = new Color('#EA2128')
*/
...
to:
/*
//Standard dynamic colors for background gradient
let top = Color.dynamic(new Color('#ffffff'), new Color('#0F2D60'))
let middle = Color.dynamic(new Color('#EDEDED'), new Color('#000427'))
let bottom = Color.dynamic(new Color('#D4D4D4'), new Color('#000000'))
*/
//Orange background gradient like the official reddit app icon
let top = new Color('#FF8420')
let middle = new Color('#FD3F12')
let bottom = new Color('#EA2128')
...
When you add the widget but also saved your login datas (via script) youll get the Error/First Run Widget.
Open the Script an Enter your Datas from Reddit.
Today is your Cakeday!? The widget will tell you subtly.
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
Config Script
const refreshInt = 90 //in minutes
const enableNotifications = true //beta
const showNotifyBadge = true //all widget sizes
const showUserTitle = true //medium- & large widget
const numberFormatting = 'de-DE' //For karma valuesen. e.g.: en-EN, en-IN etc.
const widgetIcon = 'orange' //small- & medium widget; available icons: alienblue, black, classic, orange, roundorange, oldReddit, reddit, apollo;
Official Reddit API Guidelines: https://github.com/reddit-archive/reddit/wiki/OAuth2
Helper-Shortcut for downloading App-Icon-URLs from the App-Store: https://routinehub.co/shortcut/11635/
You can set Karma
or Post
in the Lockscreen-Widgets.
'Karma' is just for the circular available!
By running the scirpt In App it will present a menu including Username, Total Karma, Coin Balance & Unread Inbox Count at the Top. You can choose one of the following three options in the sheet: Show small-, medium-, largewidget or open your profile in your standard Reddit-Client (Create Personal Reddit App/Script - 6. Config Script)
↗
↗
or download this helper shortcut+
Add new Script+
it will opens the gallery"Add Widget"
"When Interacting" = "Run Script"
It will Downloads and Save the Following Symbols at the directory "Reddit-Widget"
iCloud Drive/
├─ Scriptable/
│ ├─ Reddit-Widget/
│ │ ├─ karma.png
│ │ ├─ cakedayApollo.png
│ │ ├─ cakedayConfetti.png
│ │ ├─ profileIcon.png
│ │ ├─ classic.png
│ │ ├─ orange.png
│ │ ├─ roundorange.png
│ │ ├─ oldReddit.png
│ │ ├─ black.png
│ │ ├─ alienblue.png
│ │ ├─ arrowsLS.png
│ │ ├─ redditLS.png
---- alternative symbols ----
│ │ ├─ cakedayReddit.png
│ │ ├─ apollo.png
│ │ ├─ reddit.png
[^1]:Function is written by the amazing @mvan231 - Thx for your Support