Skip to content

Commit

Permalink
2.4.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperZombi committed Oct 13, 2022
1 parent 63f69f8 commit 6f56a0e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Picture-in-Picture-for-Youtube
<img src="https://shields.io/badge/version-v2.4.4-blue">
<img src="https://shields.io/badge/version-v2.4.4.1-blue">

### Chrome extension

Expand Down Expand Up @@ -65,6 +65,9 @@ Activates the Picture-in-Picture button and other useful features.

## List of changes:

##### 2.4.4.1:
* Support for different youtube versions

#### 2.4.4:
* Return of some old functions and bug fixes

Expand Down
2 changes: 1 addition & 1 deletion chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"manifest_version": 3,
"version": "2.4.4",
"version": "2.4.4.1",
"name": "__MSG_extName__",
"description": "__MSG_extDesc__",
"default_locale": "en",
Expand Down
2 changes: 1 addition & 1 deletion chrome/menu/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
</a>

<span style="margin-top:2px;">
<img src="https://shields.io/badge/version-v2.4.4-blue">
<img src="https://shields.io/badge/version-v2.4.4.1-blue">
<img id="update" style="display:none; margin-left:4px" src="../images/update.svg" height="20px">
</span>
</p>
Expand Down
10 changes: 8 additions & 2 deletions chrome/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ function hide_button(id){
function hideAllText_onButton(){
let timerId = setInterval(() => {
if (getButtons()?.offsetParent && isVideoLoaded()) {
let arr = [ ...document.querySelectorAll('#top-level-buttons-computed ytd-button-renderer button'),
...document.querySelectorAll('#flexible-item-buttons ytd-button-renderer button')]
let arr = [ ...document.querySelectorAll('#top-level-buttons-computed ytd-button-renderer'),
...document.querySelectorAll('#flexible-item-buttons ytd-button-renderer')]
for (let i = 0; i < arr.length; i++){
let text_element = arr[i].querySelector("span[role='text']")
if (text_element){
Expand All @@ -103,6 +103,12 @@ function hideAllText_onButton(){
icon.style.marginLeft = 0;
icon.style.marginRight = 0;
}
else{
text_element = arr[i].querySelector("#text")
if (text_element){
text_element.remove()
}
}
}
clearInterval(timerId)
}
Expand Down
12 changes: 9 additions & 3 deletions pip.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6f56a0e

Please sign in to comment.