This is a goindex theme.一个goindex的扩展主题。
See the codeCombining the power of Cloudflare Workers and Google Drive will allow you to index you files on the browser on Cloudflare Workers.
go2index/index.js is the content of the Workers script.
This theme's goindex is currently based on yanzai/goindex
Acrou: https://oss.achirou.workers.dev/
Open any of the following links
Auth and get the code
Deploy the code to Cloudflare Workers
refresh_token with rcloneindex.js in https://github.com/Aicirou/goindex-theme-acrou/tree/master/go2index and replace client_id,client_secret,refresh_token for what you just got.If you write a good article and want to share it with others, please submit Issues and I will post the link here.
| Option | Type | Default | Description |
|---|---|---|---|
api | String | '' | External video player api. When this value is not null, all of the following options do not work |
autoplay | Boolean | true | When set to true, the video plays automatically, depending on whether the browser supports the |
invertTime | Boolean | false | Display the current time as a countdown rather than an incremental counter. |
controls | Array, Function or Element | ['play-large', 'restart', 'play', 'progress', 'current-time', 'duration', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'download', 'fullscreen'] | Which buttons are displayed in the control bar. See more CONTROLS.md |
settings | Array | ['quality', 'speed', 'loop'] | You can specify which settings to show in the menu |
For more option, see plyr options
| Option | Type | Default | Description |
|---|---|---|---|
container | String | .aplayer | No support for changes |
fixed | Boolean | true | No support for changes |
autoplay | Boolean | false | audio autoplay |
loop | String | 'all' | player loop play, values: 'all', 'one', 'none' |
order | String | 'list' | player play order, values: 'list', 'random' |
preload | String | 'auto' | values: 'none', 'metadata', 'auto' |
volume | Number | 0.7 | default volume, notice that player will remember user setting, default volume will not work after user set volume themselves |
audios | Array | [] | Playlists can be preset. FAQ |
For more option, see APlayer options
How do I change the way the list is sorted?
Modify line 636 of the code or search for params.orderBy
- params.orderBy = "folder,name,modifiedTime desc";
+ params.orderBy = "modifiedTime desc";
How to preset an audio playlist?
Audio option add audios
audio: {
audios: [
{
name: "Mojito",
artist: "周杰伦",
url: "https://xx.mp3",
lrc: "https://xx.lrc",
cover: "https://xx.jpg"
}
]
}
134 followers · starred Feb 2021
1,613 followers · starred May 2020
This is a goindex theme.一个goindex的扩展主题。
See the codeCombining the power of Cloudflare Workers and Google Drive will allow you to index you files on the browser on Cloudflare Workers.
go2index/index.js is the content of the Workers script.
This theme's goindex is currently based on yanzai/goindex
Acrou: https://oss.achirou.workers.dev/
Open any of the following links
Auth and get the code
Deploy the code to Cloudflare Workers
refresh_token with rcloneindex.js in https://github.com/Aicirou/goindex-theme-acrou/tree/master/go2index and replace client_id,client_secret,refresh_token for what you just got.If you write a good article and want to share it with others, please submit Issues and I will post the link here.
| Option | Type | Default | Description |
|---|---|---|---|
api | String | '' | External video player api. When this value is not null, all of the following options do not work |
autoplay | Boolean | true | When set to true, the video plays automatically, depending on whether the browser supports the |
invertTime | Boolean | false | Display the current time as a countdown rather than an incremental counter. |
controls | Array, Function or Element | ['play-large', 'restart', 'play', 'progress', 'current-time', 'duration', 'mute', 'volume', 'captions', 'settings', 'pip', 'airplay', 'download', 'fullscreen'] | Which buttons are displayed in the control bar. See more CONTROLS.md |
settings | Array | ['quality', 'speed', 'loop'] | You can specify which settings to show in the menu |
For more option, see plyr options
| Option | Type | Default | Description |
|---|---|---|---|
container | String | .aplayer | No support for changes |
fixed | Boolean | true | No support for changes |
autoplay | Boolean | false | audio autoplay |
loop | String | 'all' | player loop play, values: 'all', 'one', 'none' |
order | String | 'list' | player play order, values: 'list', 'random' |
preload | String | 'auto' | values: 'none', 'metadata', 'auto' |
volume | Number | 0.7 | default volume, notice that player will remember user setting, default volume will not work after user set volume themselves |
audios | Array | [] | Playlists can be preset. FAQ |
For more option, see APlayer options
How do I change the way the list is sorted?
Modify line 636 of the code or search for params.orderBy
- params.orderBy = "folder,name,modifiedTime desc";
+ params.orderBy = "modifiedTime desc";
How to preset an audio playlist?
Audio option add audios
audio: {
audios: [
{
name: "Mojito",
artist: "周杰伦",
url: "https://xx.mp3",
lrc: "https://xx.lrc",
cover: "https://xx.jpg"
}
]
}
134 followers · starred Feb 2021
1,613 followers · starred May 2020