YousableTubeFix for Opera

By Mindeye Last update Mar 25, 2013 — Installed 56,561 times.

Script updated (02/02/2012)

in
Subscribe to Script updated (02/02/2012) 8 posts, 4 voices



Mindeye Script's Author
FirefoxWindows

- Possible fix for the autoplay/autobuffer problem in some videos
- Added feature to override the autoplay/autobuffer setting in the foreground tab (separate settings for watch and channel pages). It's disabled by default and only works in supported browsers (Firefox 10+ and Chrome 13+)

 
niceday User
OperaWindows

thank you for update. Autobuffering works fine for me now (opera)

 
Dave Hawley User
OperaWindows

Hi Mindeye!
Love the script but I still have one issue with it.
I'm using Opera 11.61 on XP SP3.
I've found that some YouTube videos, especially HD ones, will no longer "scrub". By that I mean that I can no longer drag the player bar and watch the video as I'm doing it. The video just goes black, and the picture doesn't return until I've stopped moving the player bar, which is very annoying! It doesn't happen when not using the script. I found by trial and error that the problem goes away if I select "Prevent only autoplay" on the script settings, but this setting isn't being saved, and never has been on any of the script versions I've used. I have Opera's local storage configured, and other settings are being saved OK, but that setting always reverts to "Don't prevent autoplay and autobuffering", both on the watch page and channel page tabs. It's still the same with the latest version of the script. Any idea why these settings aren't being saved?
Thanks, Dave.

 
Mindeye Script's Author
FirefoxWindows

@Dave: I have no idea. Delete your local storage settings for YouTube and try configuring the script again, that may fix the problem.

 
Dave Hawley User
OperaWindows

Thanks Mindeye!
I tried deleting all of my Opera local storage files, and setting the amount of local storage for User JS files back to zero, which is the default.
When I ran Opera again and visited a YouTube video page, the script had of course lost all its settings. I tried changing the autoplay setting and it was saved for as long as Opera was open, but not saved on a restart. I then tried saving a change to the Flash Player quality setting as well, and that was saved over an Opera restart. Opera had still generated a settings file in the \PStorage\00\19 folder, even though the storage allowance for User JS was still set to zero! I can't explain that. Any suggestions? Would looking at the settings file the script generated be of any help? Thanks, Dave.

 
Dither Scriptwright
OperaWindows

Script works faster without GM compatibility layer under Opera (if script named not script.user.js but just script.js) and it seems buttons changed style a bit:

--- "a/36453.user.js"
+++ "b/36453fix.js"
@@ -60,7 +60,7 @@ var YT_MENU_CLASS = "yt-uix-button-menu";
 var YT_MENU_ITEM_CLASS = "yt-uix-button-menu-item";
 
 // Class names (and a source URL) of YouTube watch pages buttons, button contents and button arrows
-var YT_BUTTON_CLASS = "yt-uix-button";
+var YT_BUTTON_CLASS = "yt-uix-button yt-uix-button-default";
 var YT_BUTTON_CONTENT_CLASS = "yt-uix-button-content";
 var YT_BUTTON_ARROW_CLASS = "yt-uix-button-arrow";
 var YT_BUTTON_ARROW_SRC = "//s.ytimg.com/yt/img/pixel-vfl3z5WfW.gif"; // Scheme relative URL
@@ -1815,6 +1815,7 @@ else {
 
 ///////////////////////////// START OF MAIN SCRIPT ////////////////////////////
 
+document.addEventListener('DOMContentLoaded', function(){
 // Prevents the script from running in a frame/iframe
 if (window.self !== window.top) return;
 
@@ -2312,7 +2313,8 @@ function scriptSearchMain() {
     }
 
 }
+}, false);
 
 ////////////////////////////// END OF MAIN SCRIPT /////////////////////////////

 
Dither Scriptwright
OperaWindows

"Configure YousableTubeFix" button being created incorrectly as <button>Text</button> but should be <button><span>Text</span></button>. It's mostly noticeable with custom CSS-es for youtube.

 
Mindeye Script's Author
FirefoxWindows

I will continue to use the GM compatibility layer because it's easier to the users (the script doesn't have to be renamed after downloading it). The buttons style and configure button structure will be fixed in next version, thanks.