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

Migration to Manifest v3 #10

Closed JohnyP36 closed 2 years ago

JohnyP36 commented 2 years ago

Prerequisites

I tried to reproduce the issue when...

Describe the issue

As Google Chrome and Microsoft Edge are no longer accepting manifest version 2 in their stores from January 2023, your extension has to migrate to v3.

I did a lot, but one think doesn't work (because I don't know how to do it) and that is how to make the autoplay+loop.js work for now he doesn't execute the script because of violating the script-src = 'self'-policy.

Below you can find all the files as I have them now: 1.7.0.zip

Also the autoconfirm don't work anymore, but the console don't give an error. So I don't know what wrong there.

Screenshot(s)

Screenshot 1 of the problem/error ![image](https://user-images.githubusercontent.com/81161435/166905529-497f54fd-b484-4b37-9ce0-fb91577ac4c1.png)
Screenshot 2 of the problem/error ![image](https://user-images.githubusercontent.com/81161435/166905640-5b36eb9d-733d-450e-bbcd-a9d872e4896a.png)

Browser & Extension version

MS Edge 101, 1.6.5

Operating System & Version

Windows 10, 21H2

Notes

No response

JohnyP36 commented 2 years ago

Although this is another extension, maybe this fixes the problem https://github.com/BPower0036/YT-Nonstop/commit/bedd62c719ae489744f011dacf094cd20480e5a7. I made this (https://github.com/JohnyP36/YT-Nonstop/tree/manifest_v3/manifest_v3) from it, but it didn't work.

So please help!


edit:

I removed a line in the popup1.3.2.html file which fixed the problem with script-src = 'self'-policy.

JohnyP36 commented 2 years ago

Fixed with https://github.com/JohnyP36/YT-Nonstop/commit/87d50a1ae3f595f2cd1ee2bed0b4953b4439c7e3 & https://github.com/JohnyP36/YT-Nonstop/commit/e54580cc1e7e419652f393258546307ea1e85afa (+ https://github.com/JohnyP36/YT-Nonstop/commit/e693278cf5e3ab9b5961a788cecee1a98d89604b)