We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 445aa49 commit a736728Copy full SHA for a736728
不学习何以强国.js
@@ -1,7 +1,7 @@
1
// ==UserScript==
2
// @name 不学习何以强国-beta
3
// @namespace http://tampermonkey.net/
4
-// @version 20220201
+// @version 20220205
5
// @description 问题反馈位置: https://github.com/TechXueXi/techxuexi-js/issues 。读文章,看视频,做习题。
6
// @author techxuexi ,荷包蛋。
7
// @match https://www.xuexi.cn
@@ -169,7 +169,7 @@ function getVideoTag() {
169
let iframe = document.getElementsByTagName("iframe")[0];
170
let video = null;
171
let pauseButton = null;
172
- if (iframe) {
+ if (iframe.innerHTML) {
173
//如果有iframe,说明外面的video标签是假的
174
video = iframe.contentWindow.document.getElementsByTagName("video")[0];
175
pauseButton = iframe.contentWindow.document.getElementsByClassName("prism-play-btn")[0];
0 commit comments