2 points

YousableTubeFix for Opera/Chrome configuration guide

Last update Sep 7, 2009

Introduction

This is a guide to configure YousableTubeFix for Opera and YousableTubeFix for Chrome, ports for Opera and Chrome users of my YousableTubeFix script. Due to the lack of the Greasemonkey API in those browsers, they can't be configured with a configuration dialog like YousableTubeFix at this moment. However, they can be configured by editing the configuration variables in the scripts code. An explanation to these variables, where to find them, its possible values and its corresponding option in YousableTubeFix configuration dialog will follow

For reference, this is an image of YousableTubeFix configuration dialog:

Location in the code

After opening the js file with an standard text editor (like Notepad), you will find the variables that can be configured between the following comment lines:

///////////////////////// START OF USER CONFIGURATION /////////////////////////

[Variables that can be configured]

////////////////////////// END OF USER CONFIGURATION //////////////////////////

Please note that not all of the code between those lines are variables that can be configured, only the ones that I will indicate in the following section should be edited by the user. They all are in lines that begin with the instruction var

Variables that can be configured by the user

var videoSize = "fill";
- Type: String
- Possible values: A floating point number between quotes (like "2" or "1.5") or the words "fill", "max" and "full"
- Meaning: This is the default video size of the player. A number indicates a factor regarding the default YouTube player size ("2" means double size, "0.5" means half size). "fill" indicates that the player will be resized to fill the width of the Youtube central column. "max" indicates that it will be resized to take all available space (preserving the video aspect ratio). "full" will resize the player to take all available space, regardless of the aspect ratio (but that can distort the video shape)
- Corresponding option in the configuration dialog: Select default video size textbox
- Special note: The option moveVideo takes precedence over this one if set to false

var removeBrand = true;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the channel brand
- Corresponding option in the configuration dialog: Channel Brand option in the Remove select box

var removeAlsoWatching = true;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the "Also Waching Now" section
- Corresponding option in the configuration dialog: "Also Watching Now" section option in the Remove select box

var removeEmbed = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the Embed section (textbox with the HTML code to embed the video in other webpage)
- Corresponding option in the configuration dialog: Embed section option in the Remove select box

var removeURL = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the URL section (textbox with video URL)
- Corresponding option in the configuration dialog: URL section option in the Remove select box

var removeRatings = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the box to rate the video
- Corresponding option in the configuration dialog: Ratings section option in the Remove select box

var removeActions = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the box with action links ("Share", "Favorite", "Flag", etc..)
- Corresponding option in the configuration dialog: Actions section option in the Remove select box

var removeBuySong = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the box with links to buy the played song in iTunes, Amazon, etc...
- Corresponding option in the configuration dialog: "Download this song" section option in the Remove select box

var removeComments = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes all the comments of the video
- Corresponding option in the configuration dialog: "None" radio button in the Comments section
- Special note: This option takes precedence over biggerComments

var removeStats = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the "Stadistics & Data" tab
- Corresponding option in the configuration dialog: Stats section option in the Remove select box

var removeVideoResponses = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the video responses section
- Corresponding option in the configuration dialog: Video responses section option in the Remove select box

var removeCharCounter = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the character counter next to the "Comment on this video" textbox
- Corresponding option in the configuration dialog: Character counter option in the Remove select box

var removeContentFrom = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the "Contains content from..." section displayed in some videos with have copyrighted content
- Corresponding option in the configuration dialog: Contains content from... section option in the Remove select box

var removeDonations = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the "Donate to this organization" section
- Corresponding option in the configuration dialog: Donations section option in the Remove select box

var removeMoreUserVideos = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the "More From: [username]" section
- Corresponding option in the configuration dialog: More videos from this user section option in the Remove select box

var removePlaylist = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the Playlist section
- Corresponding option in the configuration dialog: Playlist section option in the Remove select box

var removeRelatedVideos = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the "Related Videos" section
- Corresponding option in the configuration dialog: Related videos section option in the Remove select box

var removeHeader = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the header section (YouTube logo, my account links, search box, etc...)
- Corresponding option in the configuration dialog: Header section option in the Remove select box

var removeFooterCopyright = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the footer (search box, account links, help links, etc...) and the copyright sections
- Corresponding option in the configuration dialog: Footer and copyright sections option in the Remove select box

var removeRacyNotice = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the notice shown when visiting flagged videos
- Corresponding option in the configuration dialog: Racy video notice option in the Remove select box

var removeDefaultLanguageBox = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the dialog presented by YouTube to confirm the page's autoselected language
- Corresponding option in the configuration dialog: Default language box option in the Remove select box

var removeAnnotations = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes annotations (text comments) added to the video
- Corresponding option in the configuration dialog: Video annotations option in the Remove select box

var removeCaptions = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes captions (subtitles) added to the video
- Corresponding option in the configuration dialog: Video captions option in the Remove select box

var expandInfo = true;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Automatically expand the video description text
- Corresponding option in the configuration dialog: Automatically expanded checkbox in the video information section

var hideCollapse = true;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Removes the link to collapse the video description text
- Corresponding option in the configuration dialog: Hide collapse link checkbox in the video information section

var videoToIcon = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Stops the video autoplay and autodownload by substituing the player with an icon
- Corresponding option in the configuration dialog: Prevent both autoplay and autodownload checkbox in the Video autoplay and autodownload section
- Special note: This option takes precedence over preventOnlyAutoplay

var preventOnlyAutoplay = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Stops the video autoplay (but not autodownload), pausing the video
- Corresponding option in the configuration dialog: Prevent only autoplay checkbox in the Video autoplay and autodownload section
- Special note: The option videoToIcon takes precedence over this one

var biggerComments = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Shows more comments in the video page (500 comments per page instead of 10)
- Corresponding option in the configuration dialog: "More comments" radio button in the Comments section
- Special note: The option removeComments takes precedence over this one

var defaultVideoFormat = "0";
- Type: String
- Possible values: A positive integer number (between quotes) or "", "0", "-1" or "-2"
- Meaning: This is the default format of the YouTube video. Known video format are "18" for MPEG-4 H.264, "22" for MPEG-4 H.264 High Quality, "35" for FLV High Quality or "" for FLV Low Quality. "0" will prevent the script for changing the YouTube default format. "-1" and "-2" will make the script automatically choose the best or the fastest (and lowest) quality available respectively
- Corresponding option in the configuration dialog: Select the default video format select box
- Special note: The variable defaultVideoFormatInt should be left unchanged

var flashQuality = "high";
- Type: String
- Possible values: One of the following words (between quotes): "best", "high", "medium", "low"
- Meaning: Changes the Flash Player Quality attribute. A higher value provides a best video image, but with a higher CPU load. "high" is the quality used by YouTube by default
- Corresponding option in the configuration dialog: Select the Flash Player Quality select box
- Special note: This option is unrelated to defaultVideoFormat

var addEasyDownloadLinks = true;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Adds some direct links under the video description to download the most common video formats
- Corresponding option in the configuration dialog: Add easy-to-use download links checkbox
- Special note: You can also download the video in the current chosen format clicking in the video title

var bypassAgeVerification = false;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: Automatically bypass the age verification page for logged in users
- Corresponding option in the configuration dialog: Automatically bypass age verification (logged in users) checkbox
- Special note: It will only work for logged in users

var moveVideo = true;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: If set to false, the video won't be moved and resized by default as it normally is. The video will be left with its default size and position in the YouTube page
- Corresponding option in the configuration dialog: Move and resize the video by default checkbox
- Special note: Using a resize link will move and resize the video, regardless of this option value
- Special note: This option takes precedence over videoSize if set to false

var scrollToVideo = true;
- Type: Boolean
- Possible values: Either true or false (without quotes)
- Meaning: If set to false, the video page won't be scrolled to the video on page entry as it normally is
- Corresponding option in the configuration dialog: Scroll to the video by default checkbox

var userFormats = eval("null");
- Type: String
- Possible values: A list of comma separated positive integers (between single quotes) between square brackets, or "null"
- Meaning: A list of your selected video formats in your preferred order (from highest to lowest). Only those video formats (if the script supports them) will be used by the automatic quality options. If the option is "null", the script will use the default values
- Corresponding option in the configuration dialog: Not available yet
- Special note:eval should be left unchanged, only the string between the quotes should be modified
- Special note: A list of the possible video formats numbers can be read in the defaultVideoFormat documentation above
- Example: var userFormats = eval("['22', '18', '35', '']");

Scripts mentioned in guide