Skip to content

Commit af9fe6a

Browse files
committed
Update Disable AD of ThisAV.user.js
1 parent b4f253d commit af9fe6a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Disable AD of ThisAV/Disable AD of ThisAV.user.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
(function() {
1717
'use strict';
18-
if(typeof unsafeWindow=='undefined')var unsafeWindow=window;
18+
var _unsafeWindow=(typeof unsafeWindow=='undefined')?window:unsafeWindow;
1919
document.onclick=null;
2020
var tabsmenus=document.querySelectorAll("#slidetabsmenu>ul>li>a");
2121
for(var i=0;i<tabsmenus.length;i++){
@@ -31,12 +31,12 @@
3131
ratingText.style.marginLeft="5px";
3232
var downBtn=document.createElement("a");
3333
downBtn.style.display="flex";
34-
if(unsafeWindow.so){
35-
downBtn.href=unsafeWindow.so.variables.file;
36-
}else if(unsafeWindow.jwplayer){
37-
downBtn.href=unsafeWindow.jwplayer("myElement").config.file;
38-
}else if(unsafeWindow.videojs){
39-
var vplayer = unsafeWindow.videojs('my-video', {
34+
if(_unsafeWindow.so){
35+
downBtn.href=_unsafeWindow.so.variables.file;
36+
}else if(_unsafeWindow.jwplayer){
37+
downBtn.href=_unsafeWindow.jwplayer("myElement").config.file;
38+
}else if(_unsafeWindow.videojs){
39+
var vplayer = _unsafeWindow.videojs('my-video', {
4040
techOrder: ['shaka', 'html5'],
4141
plugins: {
4242
videoJsResolutionSwitcher: {

0 commit comments

Comments
 (0)