Skip to content

Commit

Permalink
+ Added option to copy the manifest URL
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Nov 1, 2024
1 parent a1e7ff5 commit 5dce1d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "WidevineProxy2",
"version": "0.8",
"version": "0.8.1",
"permissions": [
"activeTab",
"tabs",
Expand Down
9 changes: 7 additions & 2 deletions panel/panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ async function appendLog(result) {
<label class="expanded-only right-bound">
Date:<input type="text" class="text-box" value="${date_string}">
</label>
${result.manifests.length > 0 ? `<label class="expanded-only right-bound">
Manifest:<select id="manifest" class="text-box"></select>
${result.manifests.length > 0 ? `<label class="expanded-only right-bound manifest-copy">
<a href="#" title="Click to copy">Manifest:</a><select id="manifest" class="text-box"></select>
</label>
<label class="expanded-only right-bound command-copy">
<a href="#" title="Click to copy">Cmd:</a><input type="text" id="command" class="text-box">
Expand All @@ -174,6 +174,11 @@ async function appendLog(result) {
});
command.value = await createCommand(select.value, key_string);

const manifest_copy = logContainer.querySelector('.manifest-copy');
manifest_copy.addEventListener('click', () => {
navigator.clipboard.writeText(JSON.parse(select.value).url);
});

const command_copy = logContainer.querySelector('.command-copy');
command_copy.addEventListener('click', () => {
navigator.clipboard.writeText(command.value);
Expand Down

0 comments on commit 5dce1d0

Please sign in to comment.