Skip to content

Commit

Permalink
2.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperZombi committed Jun 20, 2024
1 parent 2da3615 commit b6febfc
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Picture-in-Picture-for-Youtube

<p align="right">
<img align="left" src="https://shields.io/badge/version-v2.5.0-blue">
<img align="left" src="https://shields.io/badge/version-v2.5.1-blue">
<a href="#donate"><img src="https://shields.io/badge/💲-Support_the_Project-2ea043"></a>
</p>

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

## List of changes:

#### 2.5.1:
* `Shorts` Fixed «Watch on TV».

#### 2.5.0:
* 🟢 Hide «Watch on TV» button.
* 🟢 `Shorts` Ads Skip.
Expand Down
2 changes: 1 addition & 1 deletion chrome/_locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@

"hideWatchOnTv": {
"message": "Hide «Watch on TV»"
},
}, "hideWatchOnTvTooltip": { "message": "../images/tooltips/watch-on-tv.png" },

"hideSponsor": {
"message": "Hide «Sponsor» button"
Expand Down
Binary file added chrome/images/tooltips/watch-on-tv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.5.0",
"version": "2.5.1",
"name": "__MSG_extName__",
"description": "__MSG_extDesc__",
"default_locale": "en",
Expand Down
4 changes: 4 additions & 0 deletions chrome/menu/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
<label style="margin-top:8px;">
<input class="form-check-input" type="checkbox" name="hideWatchOnTv">
<a class="cursor">__MSG_hideWatchOnTv__</a>

<div class="tooltip"><img src="../images/question_mark.svg">
<span class="tooltiptext"><img src="__MSG_hideWatchOnTvTooltip__" style="height: 25px"></span>
</div>
</label>

<label style="margin-top:8px;">
Expand Down
6 changes: 6 additions & 0 deletions chrome/pip-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ function hideAllText_onButton(){
function hideWatchOnTV(){
let button = document.querySelector('.ytp-remote-button');
button.style.display = 'none';
let observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
button.style.display = 'none';
});
});
observer.observe(button, {attributes: true});
}


Expand Down
10 changes: 8 additions & 2 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 b6febfc

Please sign in to comment.