Compare commits
10 Commits
2584d10950
...
8b74f9cb97
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b74f9cb97 | ||
|
|
992ff8b424 | ||
|
|
c13c5cd2cf | ||
|
|
911bffb00b | ||
|
|
4d91077527 | ||
|
|
4dcb766006 | ||
|
|
45d93aa54c | ||
|
|
e718a6d4d2 | ||
|
|
cff9436c06 | ||
|
|
893364d319 |
14
README.md
14
README.md
@@ -1,4 +1,4 @@
|
|||||||
# For some parts of this project i used Gen AI, more information below
|
!!! For some parts of this project i used Gen AI, more information below !!!
|
||||||
|
|
||||||
# Setup
|
# Setup
|
||||||
```
|
```
|
||||||
@@ -28,13 +28,15 @@ Add the script in [tampermonkey](tampermonkey) as new userscript in tampermonkey
|
|||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
```
|
```
|
||||||
flask run
|
flask run -h 0.0.0.0
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
node server/server.cjs
|
node server/server.cjs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Open [127.0.0.1:5000](http://127.0.0.1:5000) in your browser or `<your-ip>:5000`
|
||||||
|
|
||||||
# Credits
|
# Credits
|
||||||
|
|
||||||
Python code and javascript is written by me
|
Python code and javascript is written by me
|
||||||
@@ -42,3 +44,11 @@ The bridge server was also written by me
|
|||||||
|
|
||||||
CSS was generated by Gemini
|
CSS was generated by Gemini
|
||||||
The tampermonkey script was also generated by Gemini since my first idea was to use the YTM-Desktop app as player until i realised that it doesn't support adding songs to the queue.
|
The tampermonkey script was also generated by Gemini since my first idea was to use the YTM-Desktop app as player until i realised that it doesn't support adding songs to the queue.
|
||||||
|
|
||||||
|
# Planned Features
|
||||||
|
- View current playing song
|
||||||
|
- Play/pause
|
||||||
|
- Next song
|
||||||
|
- Repeat on/off
|
||||||
|
- Manually rewrite the tampermonkey script with better functions
|
||||||
|
- Pack webapp and bridge server in one application / make the tampermonkey script talk to the webapp directly
|
||||||
@@ -9,7 +9,7 @@ function add(e,title,artist,id,action) {
|
|||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
|
|
||||||
fetch("http://localhost:3000/command", {
|
fetch("http://" + window.location.hostname + ":3000/command", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
"videoId": id,
|
"videoId": id,
|
||||||
|
|||||||
@@ -141,6 +141,15 @@ a.video {
|
|||||||
min-width: 250px;
|
min-width: 250px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a.playlist {
|
||||||
|
font-weight: 600;
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
min-width: 250px;
|
||||||
|
}
|
||||||
|
|
||||||
a.artist {
|
a.artist {
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|||||||
Reference in New Issue
Block a user