Skip to content

Commit bc6841e

Browse files
committed
fix: 修复 iframe 标签与禁用自动播放功能的冲突
1 parent c8b761b commit bc6841e

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- fix: 修复编辑器混排按钮失效问题
1+
- fix: 修复 iframe 标签与禁用自动播放功能的冲突

entrypoints/SettingComponents/BasicSettings/MenuDisableAutoplay.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ export default {
1212
emits: ["update:modelValue"],
1313
data() {
1414
return {
15-
disableAutoplayIntervalId: null // 添加变量存储定时器ID
15+
disableAutoplayIntervalId: null // 添加变量存储定时器 ID
1616
};
1717
},
1818
created() {
1919
if (this.modelValue) {
2020
this.disableAutoplayIntervalId = setInterval(() => {
21-
$(".cooked iframe, .cooked video").each(function () {
21+
$(`
22+
.cooked iframe[src*='player.bilibili.com'],
23+
.cooked iframe[src*='youtube.com'],
24+
.cooked video`).each(function () {
2225
const $element = $(this);
2326
let src = $element.attr("src");
2427

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "linuxdo-scripts",
33
"description": "manifest.json description",
44
"private": true,
5-
"version": "1.4.4",
5+
"version": "1.4.5",
66
"type": "module",
77
"scripts": {
88
"dev": "wxt",

version-log.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.4.5
2+
3+
- fix: 修复 iframe 标签与禁用自动播放功能的冲突
4+
15
## 1.4.4
26

37
- fix: 修复编辑器混排按钮失效问题

0 commit comments

Comments
 (0)