Skip to content

Commit

Permalink
fix AutoNext
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperZombi committed Sep 14, 2023
1 parent 8fed4ed commit 6ab8a9a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
13 changes: 8 additions & 5 deletions 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.4.7-blue">
<img align="left" src="https://shields.io/badge/version-v2.4.8-blue">
<a href="#donate">💲Support the Project</a>
</p>

Expand Down Expand Up @@ -69,20 +69,23 @@ Activates the Picture-in-Picture button and other useful features.

## List of changes:

#### 2.4.8:
* `Shorts` Fixed a bug when AutoNext not worked.

#### 2.4.7:
* `Shorts` Fixed a bug when shortcuts worked if you wrote in the search bar or comments.
* `Shorts` Added a new shortcut on spacebar - Play/Pause (This key is currently assigned by YouTube the following video)

<br/>
<details>
<summary>Other</summary>

#### 2.4.6:
* Fixed bug with Speedometer not displaying on click

#### 2.4.5:
* Autoplay next video in shorts

<br/>
<details>
<summary>Other</summary>

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

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.7",
"version": "2.4.8",
"name": "__MSG_extName__",
"description": "__MSG_extDesc__",
"default_locale": "en",
Expand Down
4 changes: 3 additions & 1 deletion chrome/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ function main(){
addControls_and_progressBar(video)
}
if (Settings.autoNext){
video.removeAttribute("loop")
video.addEventListener("timeupdate", () => {
video.removeAttribute("loop")
})
video.addEventListener("ended", _=>{
document.querySelector("#navigation-button-down button").click()
})
Expand Down
6 changes: 4 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 6ab8a9a

Please sign in to comment.