Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,29 @@
| url添加自定义卡片 | ✅ 已完成 | 用于记录面试手撕题、其他刷题网站用户暂时替代方案 |
| 提供笔记功能 | ✅ 已完成 | 题目列表中新增笔记按钮,支持导出所有笔记为Markdown |
| 收集Anki fsrs 训练数据 | ✅ 已完成 | 待用于测试fsrs官方端口训练 |
| 接入Anki fsrs官方训练端口 | ❌ 待完成 | 待评估可行性(用户可拟合出最适合自己的记忆曲线) |
| 接入Anki fsrs官方训练端口 | ✅ 已完成 | 目前仅支持本地复习记录训练(云同步用户可能存在影响) |
| 扩展webdev云同步服务 | ❌ 待完成 | 待接入坚果云 |
| 支持语言切换 | ❌ 待完成 | 待完成 |
| 不同网站题目数据源切换 | ❌ 待完成 | 待完成(目前仅支持力扣国际站和中国站,待兼容洛谷等) |
| 兼容火狐 | ❌ 待完成 | 待完成 |
| 兼容`ctrl + enter` | ❌ 待完成 | 目前优先级较低 |


# 📝 Next Steps
| Task/Feature | Status | Notes |
|-----------------------|------------|------------------------------------|
| Multi-device data cloud sync | ✅ Completed | Edge, Chrome |
| Monitor reminder | ✅ Completed | bilibili, youtube |
| URL add LeetCode problems | ✅ Completed | For brushing questions with IDE, dedicated to working position entertainment |
| URL add custom cards | ✅ Completed | For recording interview hand-torn problems, alternative solution for other question brushing websites |
| Provide note-taking feature | ✅ Completed | Add note button in question list, support exporting all notes as Markdown |
| Collect Anki fsrs training data | ✅ Completed | Pending for testing fsrs official port training |
| Integrate Anki fsrs official training port | ❌ Pending | To be assessed for feasibility (users can fit their own optimal memory curve) |
| Switch between different website question data sources | ❌ Pending | To be completed (currently only supports LeetCode international and Chinese stations, to be compatible with Luogu, etc.) |
| Compatibility with Firefox | ❌ Pending | To be completed |
| Task/Feature | Status | Remarks |
|----------------------------|-----------|----------------------------------------------|
| Multi-device cloud sync | ✳️ Completed | Edge, Chrome |
| Monitoring reminders | ✳️ Completed | bilibili, youtube |
| Add LeetCode URL | ✳️ Completed | For IDE coding practice, perfect for working |
| Add custom card URL | ✳️ Completed | For recording interview problems, alternative for other coding websites |
| Provide note-taking feature | ✳️ Completed | Add note button in problem list, support exporting all notes to Markdown |
| Collect Anki FSRS training data | ✳️ Completed | To be used for testing FSRS official training endpoint |
| Integrate Anki FSRS official training endpoint | ✳️ Completed | Currently supports training with local review records (may affect cloud sync users) |
| Expand webdev cloud sync service | ❌ Pending | To be integrated with Nutstore |
| Support language switching | ❌ Pending | Pending completion |
| Switch data sources for different websites | ❌ Pending | Pending completion (currently only supports LeetCode international and Chinese sites, to be compatible with Luogu, etc.) |
| Compatibility with Firefox | ❌ Pending | Pending completion |
| Compatibility with `ctrl + enter` | ❌ Pending | Lower priority for now |



Expand Down
30 changes: 30 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog



## [0.1.4] - 2025-04-08
----------------------

### Added

* 新增本地 FSRS 算法参数优化,用户可以拟合最适合自己的记忆曲线。(#15)


### Fixed

* 修复了在页面缩放时,rate 按钮消失的问题。(#32)

















## [0.1.3] - 2025-04-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion manifest.base.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Leetcode Mastery Scheduler",
"version": "0.1.3",
"version": "0.1.4",
"author": "Hacode",
"description": "Leetcode-Mastery-Scheduler tracks your LeetCode progress and prompt you to review based FSRS",
"homepage_url": "https://github.com/xiaohajiayou/Leetcode-Mastery-Scheduler",
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Leetcode-Mastery-Scheduler",
"version": "0.1.3",
"version": "0.1.4",
"description": "<h1 align=\"center\">\r <img src=\"assets/logo2.png\" style=\"width: 10%;\" />\r <br>\r <B>P</B>ractice <B>M</B>akes <B>C</B>ode <B>A</B>ccepted\r <br>\r </h1>",
"main": "src/popup.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ <h3>Add Review Card</h3>
<small>
<div>
<span class="update-badge">NEW!</span>
新增笔记撰写和导出功能。 / Add note writing and export features
支持通过复习记录优化fsrs算法参数。 / Support Optimize FSRS parameters.
</div>
<div>
<a target="_blank" href="https://github.com/xiaohajiayou/Leetcode-Mastery-Scheduler/blob/main/changelog.md">
View full changelog now(V0.1.3)
View full changelog now(V0.1.4)
</a>
</div>
</small>
Expand Down
5 changes: 4 additions & 1 deletion src/popup/delegate/fsrsDelegate.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ export const optimizeFSRSParams = async (csvContent, onProgress) => {
try {
const formData = new FormData();
const csvBlob = new Blob([csvContent], { type: 'text/csv' });
// ref: https://github.com/ishiko732/fsrs-online-training/blob/73b3281e4c972bf965083dcfe61f087383b4a083/components/lib/tz.ts#L3-L4
// Chrome > 24, Edge > 12, Firefox > 29
const timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
formData.append('file', csvBlob, 'revlog.csv');
formData.append('sse', '1');
formData.append('hour_offset', '4');
formData.append('enable_short_term', '0');
formData.append('timezone', 'Asia/Shanghai');
formData.append('timezone', timeZone);

const response = await fetch('https://ishiko732-fsrs-online-training.hf.space/api/train', {
method: 'POST',
Expand Down