mirror of
https://github.com/hyzendust/Sharepoint-Downloader.git
synced 2026-06-30 20:32:20 +02:00
Enhance popup interface with cookie handling and warning for yt-dlp commands
This commit is contained in:
33
popup.html
33
popup.html
@@ -22,6 +22,13 @@
|
||||
<button id="copyTabYtdlp" class="btn secondary small">
|
||||
Copy yt-dlp Command
|
||||
</button>
|
||||
<button
|
||||
id="copyTabYtdlpCookies"
|
||||
class="btn secondary small"
|
||||
style="display: none"
|
||||
>
|
||||
Copy yt-dlp (cookies.txt)
|
||||
</button>
|
||||
<button id="copyTabUrl" class="btn toggle small">Copy URL</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -37,6 +44,16 @@
|
||||
<option value="firefox">Firefox</option>
|
||||
<option value="brave">Brave</option>
|
||||
</select>
|
||||
<div id="cookieWarn" class="warn" style="display: none">
|
||||
⚠ <strong>Close your browser first!</strong> Chromium-based
|
||||
browsers lock the cookie DB while open — yt-dlp will fail to read
|
||||
cookies. Close it, run the command, then reopen.<br />
|
||||
<span
|
||||
>Alternative: export cookies with
|
||||
<em>Get cookies.txt LOCALLY</em> extension, save as
|
||||
<code>cookies.txt</code>, then use the command below.</span
|
||||
>
|
||||
</div>
|
||||
|
||||
<label>Quality:</label>
|
||||
<select id="quality" class="select">
|
||||
@@ -104,7 +121,7 @@
|
||||
</div>
|
||||
|
||||
<div class="manifest-section">
|
||||
<label>yt-dlp:</label>
|
||||
<label>yt-dlp (browser cookies):</label>
|
||||
<div class="text-container">
|
||||
<p id="ytdlpCommand" class="text">Select a captured URL above.</p>
|
||||
</div>
|
||||
@@ -112,6 +129,20 @@
|
||||
Copy yt-dlp
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div
|
||||
class="manifest-section"
|
||||
id="ytdlpCookiesFileSection"
|
||||
style="display: none"
|
||||
>
|
||||
<label>yt-dlp (cookies.txt file):</label>
|
||||
<div class="text-container">
|
||||
<p id="ytdlpCookiesFileCommand" class="text"></p>
|
||||
</div>
|
||||
<button id="copyYtdlpCookiesFileBtn" class="btn secondary small">
|
||||
Copy yt-dlp (cookies.txt)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user