Wordle Solver

Gives You the Wordle Answer

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Wordle Solver
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Gives You the Wordle Answer
// @author       Nick
// @match        https://www.nytimes.com/games/wordle/*
// @icon         https://www.nytimes.com/games-assets/v2/assets/wordle/page-icons/wordle-icon.svg
// @grant        none
// @license      MIT
// ==/UserScript==

let date = new Date()
let day = (date.getMonth()+1)
if(day.toString().length < 2) {
    day = "0"+day
}
let date_wordle = date.getYear()+1900+"-"+day+"-"+date.getDate()
fetch("https://www.nytimes.com/svc/wordle/v2/"+date_wordle+".json").then((data)=>{
    data.json().then((json)=>{
        alert("The Wordle Answer is: '"+json.solution+"'")
    })
})