-
Notifications
You must be signed in to change notification settings - Fork 243
Google Drive Userscript Installation Guide
This guide will walk you through installing the userscript necessary for playing media hosted by Google Drive on newer CyTube installations. If you already know what a userscript is, get it here.
This userscript will work only if you connect to CyTube from cytu.be or www.cytu.be. Alternate addresses are not supported by this script.
- Purpose
- [Third-party cookies] (#wiki-third-party-cookies)
- Chrome
- Firefox
- Other browsers
Since Google Drive support was launched in early 2014 it has broken at least 4-5 times. Each time it had required increasing effort to get it working again and disrupted many channels. This is because there is no official API for it like there is for YouTube videos, which means support for it relies on undocumented tricks. In August 2016, the decision was made to phase out the native support for Google Drive and instead require users to install a userscript, which bypasses certain browser restrictions and makes the code easier to repair, simpler, and less prone to failure. (It could still break due to future Google Drive changes, but it will now be potentially easier to fix.) The userscript is a short script that you can install using a browser extension such as Tampermonkey or Greasemonkey that runs on the page and provides additional functionality needed to play Google Drive videos.
In both the Chrome and the Firefox installations of the userscript, it's important that your browser does not block third-party cookies. In Chrome, that setting is found in Settings: Show advanced settings... > Privacy: Content settings... > Cookies, or from typing "chrome://settings/content" into the omnibox. Either the checkbox for "Block third-party cookies and site data" should be unchecked, or an exception for cytu.be should be made by clicking on the "Manage exceptions..." button.
In Firefox, the setting is found in Options > Privacy: History, or from typing "about:preferences#privacy" in the omnibox. It's shown only if you have Firefox use custom settings for the history. The "Accept cookies from sites" checkbox should be checked and "Accept Third-party cookies" should be set to "Always" or "From visited", or an exception should be made for cytu.be by clicking on the "Exceptions..." button.
In order to run userscripts on Chrome you will need to install a userscript host browser extension called Tampermonkey. Once you've installed it opening the userscript link should turn the tab into an installation dialogue. Here you may review the source code of the userscript. Once you are satisfied it only does what we said it does, click the install button.
- Open the Tampermonkey page on the Chrome web store.
- Install it.
- Install the userscript.
For Firefox, you can install the Tampermonkey addon from here. Then you can follow the same steps as for Chrome to install the userscript.
The script is also compatible with Greasemonkey.
Other browsers should work much the same way, install a userscript host extension/plugin and then installing the userscript into it. Tampermonkey supports most browsers.

