Skip to content

Commit bb90de1

Browse files
committed
Update flashViewer.user.js
1 parent a60962c commit bb90de1

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

FlashViewer-HTML5 Video/flashViewer.user.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// @name flashViewer
33
// @author NLF & Hoothin
44
// @description 围观Flash,增加 HTML5 视频速度与亮度调整
5-
// @version 1.2.1.8
5+
// @version 1.2.1.9
66
// @created 2013-12-27
7-
// @lastUpdated 2024-8-10
7+
// @lastUpdated 2025-9-24
88
// @grant none
99
// @run-at document-start
1010
// @namespace http://userscripts.org/users/NLF
@@ -1555,6 +1555,7 @@
15551555
minHeight: 150,
15561556

15571557
scale: function (e) {
1558+
if (this.pinned || this.maximized) return;
15581559
if (e.deltaY > 0) {
15591560
this.zoomLevel += -0.1;
15601561
if (this.zoomLevel > 3) this.zoomLevel = 1;
@@ -1635,7 +1636,7 @@
16351636
var vNodeName = video.nodeName;
16361637

16371638
// 如果是这些元素,那么pin的时候直接用fixed方式(这些元素随便调整position不会引发重载)
1638-
var fixedPin = /^(?:IFRAME|VIDEO|AUDIO)$/.test(vNodeName);
1639+
var fixedPin = /^(?:IFRAME|VIDEO|AUDIO|CANVAS)$/.test(vNodeName);
16391640
this.fixedPin = fixedPin;
16401641

16411642
video.fvPopVideo = true;// 标记弹出中。
@@ -3843,7 +3844,7 @@
38433844
}
38443845

38453846
// 可弹出元素
3846-
const availableNode = /^(?:OBJECT|EMBED|VIDEO|AUDIO|IFRAME)$/i;
3847+
const availableNode = /^(?:OBJECT|EMBED|VIDEO|AUDIO|IFRAME|CANVAS)$/i;
38473848
if (!availableNode.test(tNName)) {
38483849
target = null;
38493850
if (document.elementsFromPoint) {

0 commit comments

Comments
 (0)