JohnyP36 / YT-Nonstop

Extension to let YouTube run nonstop with autoplay, autoconfirm and automatic pressing the loopbutton.
GNU General Public License v2.0
14 stars 1 forks source link
autoplay-videos chromium-extension extension needs-improvement youtube


YT Nonstop

pronounced you-tube nonstop (/yo͞o t(y)o͞ob nónstäp/) — you decide what YouTube has to do.

Get YT Nonstop for Microsoft Edge Get YT Nonstop for Firefox

An extension to let YouTube run nonstop with autoplay, autoconfirm and automatic pressing the loopbutton.


Philosophy

This extension has 3 tasks:

  1. It automatically clicks on "Continue Watching?" if Youtube asks you the annoying question "Are you still there?"
  2. In the popup menu of this extension you have 2 extra options:
    1. to disable/enable Youtube autoplay. This is to avoid that Youtube automatically plays the next video after your video ends.
    2. and to loop playlists So Youtube will not automatically go outside the playlist if it ends
    3. enable the functionality that will click on the 18+ message if you are in a playlist AND also enabled loop playlists functionality.

Explanation Github folders

Folder 1.5.5_OLD VERSION ### [1.5.5_OLD VERSION](https://github.com/JohnyP36/YT-Nonstop/tree/old/1.5.5_OLD%20VERSION) This is an older version of my extension. But the `autoplay` function doesn't work anymore, because YouTube changed their site. #### The following files need do be changed: - [background2.js](https://github.com/JohnyP36/YT-Nonstop/blob/old/1.5.5_OLD%20VERSION/js/background2.js) - [autoplay.js](https://github.com/JohnyP36/YT-Nonstop/blob/old/1.5.5_OLD%20VERSION/js/autoplay.js) - and maybe: [jquery-3.2.1.min.js](https://github.com/JohnyP36/YT-Nonstop/blob/old/1.5.5_OLD%20VERSION/js/jquery-3.2.1.min.js)

manifest_v2

This folder contains the newest version of my extension with manifest version 2, which is now deprecated.
The code is the same as the one in the manifest_v3 folder, except the necessary differences. If you are using Firefox you can use the code in this folder.
And the code in this folder will be published to the Firefox Add-ons.

manifest_v3

There, you can found the newest version of my extension, which now has manifest version 3. This is also the version that will be published to the Edge Store.
Everey issue you report (via the newest version template) will be changed here.

Need help!

If you see something wrong or incorrect start an issue and let me know what I should change.

Documentation

There are two ways to customize the options of the extension

Option 1 Option 2 (advanced)
When you are in the tab where YouTube is playing:
just click on the extension icon
So this opens the popup
When the YouTube tab isn't active:
right click on the extension icon
So this opens a new tab
afbeelding afbeelding

As you can see it has the same lay-out.

Other points of attention:

Installation

The required permission are (manifest):

"permissions": [ 
    "declarativeContent", 
    "storage", 
    "tabs"
],
"host_permissions": [
    "*://www.youtube.com/*",
    "*://music.youtube.com/*"
]

"Storage" is neccessary to save your preferences between sessions.
"Tabs" is required to make the extension work properly on if YouTube is playing in the background. So, I am not collecting your browser history or whatsoever.

Microsoft Edge

Chromium-based Edge: Stable version available in Microsoft Edge Add-ons.

Other stores

~This extension has no Firefox syntax.
So feel free to make an pr in which the chromium syntax is converted to that of Firefox.~
The Firefox syntax can be found in the folder manifest_v2 of this repo and is available as Firefox Add-on
It's ~also~ not uploaded to the Chrome store, because you need to pay a little amount of money. Which isn't worth it for now.
But you can always sideload my extension in chromium-based browsers by enabling developer mode under [browsername]://extensions

If you want to load the extension by yourself in your browser without installing it from store or Microsoft suddenly decides to take action against it, follow the instructions below:

  1. Clone or download this repository
    • If you download it, make sure to extract it first
  2. Open the Extension Management page by navigating to edge://extensions
    • The Extension Management page can also be opened by clicking on the Edge menu, hovering over More Tools then selecting Extensions.
  3. Enable Developer Mode by clicking the toggle switch next to Developer mode.
  4. Click the Load unpacked button and select the extension directory.
  5. Ta-da! The extension has been successfully installed!

Release History

See the releases page for a history of releases and highlights for each release. This goes back to version 1.5.5.

License

GNU General Public License v2.0

Contributing

If you want to contribute to this project, make sure you have read the Contributing file