Skip to content

Commit

Permalink
修复 视频学习不会自动关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
techxuexi21 authored Feb 5, 2022
1 parent 445aa49 commit a736728
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 不学习何以强国.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name 不学习何以强国-beta
// @namespace http://tampermonkey.net/
// @version 20220201
// @version 20220205
// @description 问题反馈位置: https://github.com/TechXueXi/techxuexi-js/issues 。读文章,看视频,做习题。
// @author techxuexi ,荷包蛋。
// @match https://www.xuexi.cn
Expand Down Expand Up @@ -169,7 +169,7 @@ function getVideoTag() {
let iframe = document.getElementsByTagName("iframe")[0];
let video = null;
let pauseButton = null;
if (iframe) {
if (iframe.innerHTML) {
//如果有iframe,说明外面的video标签是假的
video = iframe.contentWindow.document.getElementsByTagName("video")[0];
pauseButton = iframe.contentWindow.document.getElementsByClassName("prism-play-btn")[0];
Expand Down

0 comments on commit a736728

Please sign in to comment.