Go to your homescreen, Click&Hold. Edit Homescreen. Right above there‘s a +. Click it. search Scriptable. Click it. Then you can swipe two times. The first option is the small widget, when you swipe once you can add the medium one (this is the one you need) and when swipe two times it's the big one.
Does it say "Select script in widget configurator"? Then you have to "click & hold" -> "edit widget". Then choose for Script "NHL-MyTeam-Widget", for When Interacting "Run script".
I get the following error: 'TypeError: undefined is not an object (evaluating 'oTeamData[MY_NHL_TEAM].id')'
Replace
const MY_NHL_TEAM = "ENTER_TEAM_ABBREVIATION_HERE";
with, e.g.
const MY_NHL_TEAM = "TOR";
if the Leafs are your team.
Make sure you copied the whole script from here. Make sure you copy it until the following lines are marked:
/********************************************************
************* MAKE SURE TO COPY EVERYTHING *************
*******************************************************/
Probably the memory of your device is almost full. You can solve the problem by searching for the setting CACHING_ACTIVE in the script and changing the value from true to false.
-
Make sure no-background.js is installed properly: Just copy this as a seperate script "no-background".
-
After that, make sure you changed the following line in the NHL script from
const NO_BACKGROUND_INSTALLED = false;
to
const NO_BACKGROUND_INSTALLED = true;
Search the line
const DARK_MODE = Device.isUsingDarkAppearance();
This is setting uses the system color scheme.
Write the following for having dark-mode activated:
const DARK_MODE = true;
Write the following for having light-mode activated:
const DARK_MODE = false;
I don't want to be spoilered. How to disable livescores and W-L-OTL stats, standings and top scorer?
For hiding livescores replace
const SHOW_LIVE_SCORES = true;
with
const SHOW_LIVE_SCORES = false;
For hiding W-L-OTL stats, standings and top scorer replace
const SHOW_STATS_AND_STANDINGS = true;
with
const SHOW_STATS_AND_STANDINGS = false;
Replace
const WIDGET_URL = "nhl://";
with
const WIDGET_URL = "";
Just head over to this GoogleForm, type your email address and I'll send you an email when a new update is released.
As some users asked how to donate to the project I created this section:
Of course I won't take anything for the widget, but if you really want to donate, feel free to buy me a coffee via paypal.