Large

YouTube HD Ultimate

By Avindra V.G. Last update Dec 10, 2010 — Installed 402,099 times.

Mini Mode Issue

in
Subscribe to Mini Mode Issue 2 posts, 2 voices



AC11 User
FirefoxWindows

Hi,
I found out that if "fit to window" is ticked, the mini mode options works, but if "fit to window" is not ticked, the mini mode will hide the video if clicked once and will continue to hide the video if clicked again to turn it off.

Thanks

 
Avindra V.G. Script's Author
FirefoxWindows

Oh ok. That's what the issue was about. I hadn't realized because I didn't turn off fitToWindow. Here's the fix, in case any of you want it now:

head.appendChild(new Element("a", {
	className : player.offsetHeight + "px",
	style : "font-size:12px;padding-top:3px;padding-left:3px;",
	onclick : function() {
		if(this.textContent=="mini mode on")
		{
			this.textContent = "mini mode off";
			if(opts.fit) {
				unsafeWindow.onresize = fitToWindow;
				fitToWindow();
			} else player.style.height = this.className;
		} else {
			this.textContent = "mini mode on";
			player.style.height = "25px";
			unsafeWindow.onresize = null;
		}
	},
	textContent : "mini mode o" + (opts.min ? "n" : "ff")
}));

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel