---
# System prepended metadata

title: 無標題

---


## 測試用 localStorage 指令

以下指令可在瀏覽器 Console 中執行，方便測試各種結局。

請你要先去第一關開頭填寫一下自己的名字，再去測試完美結局，這樣才能用第七關的解鎖道具去完成彩蛋結局

### 解鎖結局（普通結局分數 90%）

```javascript
const data = JSON.parse(localStorage.getItem('livefit.progress') || '{}')
data.quizScores = {}
for (let day = 4; day <= 10; day++) {
  data.quizScores[day] = { correct: 9, total: 10, percentage: 90 }
}
data.completedChapters = [1,2,3,4,5,6,7,8,9,10]
data.currentChapter = 11
localStorage.setItem('livefit.progress', JSON.stringify(data))
location.reload()
```

### 解鎖結局（完美結局分數 100%）

```javascript
const data = JSON.parse(localStorage.getItem('livefit.progress') || '{}')
data.quizScores = {}
for (let day = 4; day <= 10; day++) {
  data.quizScores[day] = { correct: 10, total: 10, percentage: 100 }
}
data.completedChapters = [1,2,3,4,5,6,7,8,9,10]
data.currentChapter = 11
localStorage.setItem('livefit.progress', JSON.stringify(data))
location.reload()
```

### 解鎖結局（壞結局分數 70%）

```javascript
const data = JSON.parse(localStorage.getItem('livefit.progress') || '{}')
data.quizScores = {}
for (let day = 4; day <= 10; day++) {
  data.quizScores[day] = { correct: 7, total: 10, percentage: 70 }
}
data.completedChapters = [1,2,3,4,5,6,7,8,9,10]
data.currentChapter = 11
localStorage.setItem('livefit.progress', JSON.stringify(data))
location.reload()
```