YousableTubeFix for Opera

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

Editing default setings

in
Subscribe to Editing default setings 10 posts, 4 voices



Slo User
OperaWindows

Hi

lately I changed something about my PC setup (my guess is ccleaner) and it sets the configuration of the script back to the default settings.
Just for fun I took the challenge to modify the default settings in your script. (and yes I know i do this the hart way)
It wasn't that hart since your script is well documented but I could not work out the defaultVideoQuality:
I know that

defaultVideoQuality: GM_getValue("defaultVideoQuality", "ytfHighest"),

works if you always what the best quality. But what do I need for 480p and 720p?

Thank you
Slo

 
Mindeye Script's Author
FirefoxWindows

The script saves its settings using Opera's local storage; I think Ccleaner can be configured to wipe it, so maybe you're right.

You need "large" for 480p and "hd720" for 720p. I have to find time to complete the script comments, because the section that lists the possible values isn't commented yet. However, I don't really understand why you want to do that, as all the changes will be reverted when the script is updated. Isn't it easier to configure Ccleaner to stop deleting the script settings?

 
Slo User
OperaWindows

Sry had to reinstall my hole system

Thanks it works.

But on the more easy way of dealing with this problem.

Which file do I need to protect in ccleaner?
As far as I understand youtube only uses flash cookies? and the script is creates a "classic" normal cookie?

 
RainyShadow User
OperaWindows

The script uses "local storage", this is different from "classic normal cookie".
I have to modify the defaults too, as my browser version doesn't support local storage (and newer versions which have it got other issues).

A cookie fallback would be nice :)

About 480p, last time i tried it ("large" setting), it was still loading the 360 version. Bug?

 
Mindeye Script's Author
FirefoxWindows

Slo: YouTube uses normal cookies and Flash cookies. The script uses local storage.

Rainy Shadow: If the video doesn't have a 480p version available, then the 360p will be chosen. If that video has a 480p version, I'll need the link to check if it's a bug.

 
RainyShadow User
OperaWindows

Mindeye: here is one - http://www.youtube.com/watch?v=zlfKdbWwruY
Screenshot - http://img201.imageshack.us/img201/4233/ytfo480...

As you can see, both the script and the YT player show 480p as available, but it defaults to 360p.

btw. could you add some small function to import/export the settings as cookies when GM-storage and Web-storage are not available, please?

 
Mindeye Script's Author
FirefoxWindows

Try the new uploaded version.

About the cookie fallback, I understand you want it because you use an old version, but it will make the script more complex and it's easier for me to code assuming Opera 10.50 as a baseline. Besides, storing the settings in cookies has its own set of problems and security issues, that's why I didn't add support for the configuration dialog till Opera added support for local storage.

 
RainyShadow User
OperaWindows

480p works now.

 
Runescaper133 User
OperaWindows

Your browser does not support scriptStorage or storage quota is not specified.
Set "opera:config#PersistentStorage|UserJSStorageQuota" >= 500 Kb.

Mine says this. Even I set the default quality to small>360 it still go back to default

 
Mindeye Script's Author
FirefoxWindows

I'm afraid I don't understand you. The script use localStorage in Opera to store its settings, it doesn't use much space (a few Kb maximum). It doesn't use window.opera.scriptStorage. If the settings aren't saved in your computer, check if storage is enabled in Preferences / Advanced / Storage.