mirror of
https://codeberg.org/vlw/disneyplus-pip.git
synced 2025-09-13 18:33:40 +02:00
Remove unused permission and add new PIP icon (#3)
* feat: remove unused permission and new pip icon * Update README.md
This commit is contained in:
parent
c18d3a86dc
commit
f99e92037c
3 changed files with 3 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
## Picture in Picture for Disney+
|
||||
|
||||

|
||||

|
||||
|
||||
Add Picture-in-Picture support on Disney+ in the browser.
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ class PIPController {
|
|||
pip.tabindex = "0";
|
||||
pip.classList = "control-icon-btn fullscreen-icon";
|
||||
|
||||
pip.innerHTML = `<div class="focus-hack-div " tabindex="-1"><svg tabindex="-1" focusable="false"><use xlink:href="#067--arrow-down" style="transform: rotate(180deg) scale(0.6);transform-origin: 50% 50%;"></use><use xlink:href="#014--fullscreen"></use></svg></div>`;
|
||||
pip.innerHTML = `<div class="focus-hack-div " tabindex="-1"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 -1 27 27" tabindex="-1" focusable="false"><path fill="#ffffff" d="M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z"/></svg></div>`;
|
||||
|
||||
pip.addEventListener("click", () => this.togglePictureInPicture());
|
||||
|
||||
|
|
|
@ -1,11 +1,8 @@
|
|||
{
|
||||
"name": "Disney+ PIP",
|
||||
"description": "Adds Picture-in-Picture (PIP) support for Disney+",
|
||||
"version": "1.1",
|
||||
"version": "1.2",
|
||||
"manifest_version": 3,
|
||||
"permissions": [
|
||||
"activeTab"
|
||||
],
|
||||
"content_scripts": [{
|
||||
"matches": ["https://*.disneyplus.com/*"],
|
||||
"js": ["assets/js/script.js"]
|
||||
|
|
Loading…
Add table
Reference in a new issue