What’s my Wordle Score?
Simple shortcut to calculate and share your average Wordle score
basilsharecutsScan med din iPhone for at installere
Simple shortcut to calculate and share your average Wordle score. Losses are treated as 7 points. To use, share from the Wordle page in Safari. Enjoy!
NOTE: Allow Running Scripts must be ON for this shortcut to work: Settings -> Shortcuts -> Advanced -> Allow Running Scripts
Nyheder
Version 1.2
Add comment about enabling Allow Running Scripts
Hvad den gør
22 handlinger-
Get Webpage Detail
-
Commentv1.02 - Simple shortcut to calculate and share your average Wordle score. Losses are treated as 7 points. To use, share from the Wordle page in Safari. Enjoy! NOTE: Allow Running Scripts must be ON for this shortcut to work: Settings -> Shortcuts ->…
-
If
-
Show AlertNot Wordle!
-
Stop This Shortcut
-
If
-
Run JavaScript on Web Page
-
Get Dictionary from Input
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Get Dictionary Value
-
Calculate Expression
-
Calculate Expression
-
Round Number
-
Text
-
Copy to Clipboard
-
Show AlertCongratulations Wordler!
-
Stop This Shortcut
Vis som kode
Alle genvejens handlinger skrevet ud i Cherri, et programmeringssprog til genveje. Perfekt til at lære, hvordan den virker.
#include 'actions/web'
#define color green
#define glyph boxOutline
const PageURL = getWebPageDetail(ShortcutInput, "Page URL")
/*
v1.02 - Simple shortcut to calculate and share your average Wordle score. Losses are treated as 7 points. To use, share from the Wordle page in Safari. Enjoy!
NOTE: Allow Running Scripts must be ON for this shortcut to work: Settings -> Shortcuts -> Advanced -> Allow Running Scripts
*/
if PageURL != "https://www.nytimes.com/games/wordle/index.html" {
alert("This is not Wordle!", "Not Wordle!")
stop()
} else {
}
const JavaScriptResult = runJavaScriptOnWebpage("const statistics = JSON.parse(localStorage.getItem('nyt-wordle-statistics'));\n// Call completion to finish\ncompletion(statistics.guesses);")
const Dictionary = getDictionary(JavaScriptResult)
const numberOfOnes = Dictionary['1']
const numberOfTwos = Dictionary['2']
const numberOfThrees = Dictionary['3']
const numberOfFours = Dictionary['4']
const numberOfFives = Dictionary['5']
const numberOfSixes = Dictionary['6']
const numberOfSevens = Dictionary['fail']
const numberOfGames = numberOfOnes+numberOfTwos+numberOfThrees+numberOfFours+numberOfFives+numberOfSixes+numberOfSevens
const averageScore = ((numberOfOnes*1)+(numberOfTwos*2)+(numberOfThrees*3)+(numberOfFours*4)+(numberOfFives*5)+(numberOfSixes*6)+(numberOfSevens*7))/numberOfGames
const roundedAvgScore = ceil(averageScore, "Thousandths")
const Text = "🤓My Average Wordle score is {roundedAvgScore} What's yours? \n🟩🟩🟩🟩🟩"
setClipboard(Text)
alert("Your Average Wordle Score is {roundedAvgScore}! (copied to clipboard for easy sharing 🙃)", "Congratulations Wordler!")
stop()
Åbn i Cherri Playground
Dekompileret med cherri 2.3.0 (GPL-2.0). Kan kræve små rettelser, før den kan kompileres.
Bedømmelser og anmeldelser
Skriv en anmeldelse–
ud af 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Ingen anmeldelser endnu. Vær den første!
Annonce
Du vil måske også kunne lide
Annonce