disable sponsorBlock with alt download
This commit is contained in:
parent
5c7044dd19
commit
b8c70ca4d8
1 changed files with 6 additions and 2 deletions
|
@ -31,7 +31,6 @@
|
||||||
<li></li>
|
<li></li>
|
||||||
<li></li>
|
<li></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<header>
|
<header>
|
||||||
<section class="section" id="announcement">
|
<section class="section" id="announcement">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
@ -176,10 +175,12 @@
|
||||||
<div class="column box notification is-dark level">
|
<div class="column box notification is-dark level">
|
||||||
<p class="subtitle">{{ file.name }}</p>
|
<p class="subtitle">{{ file.name }}</p>
|
||||||
<div>
|
<div>
|
||||||
<video muted loop onmouseover="this.play()" onmouseout="this.pause();" oncanplay="this.muted=true" poster="{{ file.img }}" preload="metadata">
|
<figure class="is-4by3">
|
||||||
|
<video muted loop onmouseover="this.play();" onmouseout="this.pause();this.currentTime = 0;" oncanplay="this.muted=true;" poster="{{ file.img }}" preload="metadata">
|
||||||
<source src="/thumbnail/{{ file.name }}.mp4#t=0.5" >
|
<source src="/thumbnail/{{ file.name }}.mp4#t=0.5" >
|
||||||
<img src="{{ file.img }}" title="Your browser does not support the <video> tag">
|
<img src="{{ file.img }}" title="Your browser does not support the <video> tag">
|
||||||
</video>
|
</video>
|
||||||
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -278,8 +279,11 @@
|
||||||
document.getElementById('mp3').checked = false;
|
document.getElementById('mp3').checked = false;
|
||||||
document.getElementById('flac').disabled = true;
|
document.getElementById('flac').disabled = true;
|
||||||
document.getElementById('flac').checked = false;
|
document.getElementById('flac').checked = false;
|
||||||
|
document.getElementById('sponsorBlock').disable = true;
|
||||||
|
document.getElementById('sponsorBlock').disable = false;
|
||||||
document.getElementById('mp4').checked = true;
|
document.getElementById('mp4').checked = true;
|
||||||
document.getElementById('high').checked = true;
|
document.getElementById('high').checked = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('small').disabled = false;
|
document.getElementById('small').disabled = false;
|
||||||
document.getElementById('mp3').disabled = false;
|
document.getElementById('mp3').disabled = false;
|
||||||
|
|
Loading…
Reference in a new issue