Skip to content

Commit

Permalink
feat: 自动跳过答题
Browse files Browse the repository at this point in the history
  • Loading branch information
SessionHu committed Jul 15, 2024
1 parent 450f255 commit fd77693
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

- 进入视频页自动播放

- 自动跳过视频答题

- 自动阻止视频自动暂停

- 播放完成自动提示
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Etw360ff
// @namespace org.sessx6cf.etw360ff
// @version 0.1.0
// @version 0.1.1
// @description Etw360ff
// @author SessionHu
// @license mit
Expand All @@ -25,6 +25,11 @@
// 隐私保护
document.querySelector(".uname-nW4AD").innerText = "Etw360ff";
}
// 自动跳过答题
const skipBtn = document.querySelector("div.btn.action-skip");
if (skipBtn !== null) {
skipBtn.click();
}
// 继续播放
const continuePlayBtn = document.querySelector(`img[alt="继续播放"]`);
if (continuePlayBtn !== null) {
Expand Down

0 comments on commit fd77693

Please sign in to comment.