Siderite / lichessTools

Browser extension that turbocharges the lichess.org site with extra functionalities
MIT License
29 stars 6 forks source link

The puzzle stats page should have a dropdown to choose the level of puzzle difficulty #869

Closed Siderite closed 1 month ago

Siderite commented 1 month ago

Example:

fetch("https://lichess.org/training/difficulty/pawnEndgame", {
  "headers": {
    "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8",
    "accept-language": "en-US,en;q=0.9,ro;q=0.8",
    "cache-control": "no-cache",
    "content-type": "application/x-www-form-urlencoded",
    "pragma": "no-cache",
    "priority": "u=0, i",
    "sec-ch-ua": "\"Chromium\";v=\"130\", \"Brave\";v=\"130\", \"Not?A_Brand\";v=\"99\"",
    "sec-ch-ua-mobile": "?0",
    "sec-ch-ua-platform": "\"Windows\"",
    "sec-fetch-dest": "document",
    "sec-fetch-mode": "navigate",
    "sec-fetch-site": "same-origin",
    "sec-fetch-user": "?1",
    "sec-gpc": "1",
    "upgrade-insecure-requests": "1"
  },
  "referrer": "https://lichess.org/training/pawnEndgame",
  "referrerPolicy": "strict-origin-when-cross-origin",
  "body": "difficulty=normal",
  "method": "POST",
  "mode": "cors",
  "credentials": "include"
});
Siderite commented 1 month ago

The stats page is not a puzzle playing page. Adding such a dropdown would be meaningless. Only when playing the puzzles does this make sense and the dropdown is present there.