您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Gives You the Wordle Answer
// ==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+"'") }) })