Vioscope is a YT frontend written for minimalists.
reback00 7d254605fd Added fallback when config.inc.php is not there | 4 år sedan | |
---|---|---|
inc | 4 år sedan | |
tests | 4 år sedan | |
themes | 4 år sedan | |
vendor | 4 år sedan | |
.gitignore | 4 år sedan | |
.htaccess | 4 år sedan | |
LICENSE | 4 år sedan | |
README.md | 4 år sedan | |
channel.php | 4 år sedan | |
composer.json | 4 år sedan | |
composer.lock | 4 år sedan | |
index.php | 4 år sedan | |
search.php | 4 år sedan | |
trending.php | 4 år sedan | |
video.php | 4 år sedan |
Vioscope is a YT frontend written for minimalists.
Uses PHP on the backend and renders bare bones HTML5 pages with a touch of CSS that can run without JS enabled. Supports proxy over TOR (currently backend functions only). No YT API.
NOTE: The project is currently in alpha stage. Features might not work as expected.
Planned to be added:
Place the entire directory somewhere in your server. Make sure you include the hidden files so that .htaccess and other important hidden files are copied as well.
For NGINX, make sure to retrict access to hidden files (filenames starting with dot). For servers other than Apache, disable directory index for security. For Apache, there is already .htaccess files there for you, so no further actions needed.
Then install the dependencies:
composer install
composer dumpautoload -o
Now copy inc/sample-config.inc.php
to inc/config.inc.php
and edit as you wish.
Start a webbrowser and point to the directory you just installed to. e.g. http://localhost/vioscope/
inc/sample-config.inc.php
file has comments to guide you through the configuration. The default ones are just as fine.
theme
: Set the theme to use on frontend. Themes are located in themes
directory. Default is default
.base_url
: You should not edit this in a normal setup. This is here to override base_url if you absolutely need to.abs_path
: You should leave this one alone too.app_name
: This is basically the website title. Set it to anything else if you want to. e.g. 'GalaxyTube', 'VideoGallore', "John's Videos".footer_text_1
: Shows the text on footer (on the left on default theme).footer_text_2
: Shows the text on footer (on the right on default theme).default_quality
*: The default video quality to be shown. Can be set to either of these values: auto|480p|720p|1080p|4k
.allow_changing_quality
*: Allow the user to change the video quality.pagination_amount
*: Items showing on one page at max in a paginated scenario.proxy_enabled
: Enable or disable proxy settings. Think of this as a flip switch for proxy. If you have it set to false, no proxy settings (described below) will be used.proxy_for_frontend_assets_enabled
*: Enables proxy for frontend linked content on user end (such as thumbnails etc.)proxy_type
: Type of proxy to use. Supported proxy types: 'http' (default), 'socks4', 'socks5', 'socks4a'proxy_ip
: The IP of the proxy to use.proxy_port
: The port of the proxy to use.proxy_username
: The username to be used with the proxy. Not all proxies may need this.proxy_password
: The password to be used with the proxy. Not all proxies may need this.* Feature is not implemented yet.
To set tor as a proxy, install tor
then enable and start its service. Set the config to something like this:
'proxy_enabled' => true,
//'proxy_for_frontend_assets_enabled' => true, // Doesn't work yet
'proxy_type' => 'socks5',
'proxy_ip' => '127.0.0.1',
'proxy_port' => '9050',
Tor's default port is 9050
. Adjust to your setup accordingly.
For privacy:
proxy_enabled
to true
and keep other settings from sample config file). Do the same on the computer you are browsing it from. Alternatively, you can use a trustworthy proxy or a VPN.To run tests:
path/to/this/repo/tests/.run-tests.sh
If you introduce a new class, don't forget to run composer dump-autoload -o
This project is highly inspired by the Invidious project.
GNU Affero General Public License v3.0