Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Remove unused permission and add new PIP icon (#3)
Browse files Browse the repository at this point in the history
* feat: remove unused permission and new pip icon

* Update README.md
  • Loading branch information
VictorWesterlund committed May 6, 2022
1 parent c18d3a8 commit f99e920
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Picture in Picture for Disney+

![demo](https://user-images.githubusercontent.com/35688133/159330808-299d1175-1f89-4fcb-b153-707d2befaee8.png)
![image](https://user-images.githubusercontent.com/35688133/167155676-ad4ae36c-66a7-416b-9085-a90bb514d5de.png)

Add Picture-in-Picture support on Disney+ in the browser.

Expand Down
2 changes: 1 addition & 1 deletion chrome/assets/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down
5 changes: 1 addition & 4 deletions chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down

0 comments on commit f99e920

Please sign in to comment.