Force flash quality

in Ideas and script requests
Subscribe to Force flash quality 11 posts, 8 voices



chriskim Scriptwright

My dad likes to watch a lot of flash content on the internet, but he has an older computer so flash video comes out very choppy unless he right-clicks and sets the quality to "medium" or "low." Is there a way to set the quality for all flash objects? I have very little experience with this so please bear with me. I've searched but I could not find anything. Can anyone help?

Thank you,
Chris

 
Mikado Scriptwright

GreaseMonkey doesn't seem to run scripts on separate swf files, so this will only work for pages that contain embedded flash.

for (var objs = document.embeds, i = objs.length - 1; i >= 0; i--) {
	objs[i].setAttribute('quality', 'low');
	with (objs[i].parentNode) appendChild(removeChild(objs[i]));
}

for (objs = document.getElementsByTagName('object'), i = objs.length - 1; i >= 0; i--) {
	for (var c = objs[i].childNodes, j = c.length - 1, set = false; j >= 0; j--) {
		if ((c[j].tagName == 'PARAM') && (c[j].getAttribute('name') == 'quality')) { c[j].setAttribute('value', 'low'); set = true; break; }
	}
	if (!set) with (objs[i].appendChild(document.createElement('param'))) setAttribute('name', 'quality'), setAttribute('value', 'low');
	
	with (objs[i].parentNode) appendChild(removeChild(objs[i]));
}

 
chriskim Scriptwright

That works beautifully. Thank you so much!

You should add it to the script repository :)

 
sdfghjklkjhg... Scriptwright

comment by Mikado
works great on youtube is there a way to force this on this http://www.gaiaonline.com/games/launch.php?g=ga...
also it worked on http://www.gaiaonline.com/games/launch.php?g=fi... but it changed back by it self
Username: dam javascript links
Password: 172839456.

 
Avindra V.G. Scriptwright

for reloading swf objects, i found that:

swfObject.src+="#r";

works best.

 
sdfghjklkjhg... Scriptwright

could you please place that into the code
im not very skilled in javascript :(

 
Avindra V.G. Scriptwright

where it says:

	with (objs[i].parentNode) appendChild(removeChild(objs[i]));

use:

	objs[i].src+="#r";

instead.

 
vasto Lorde Scriptwright

// ==UserScript==
// @name XXXXXXXX
// @namespace XXXXXXXXX
// @description Recomended for Slower PC's
// @include http://*
// ==/UserScript==
for (var objs = document.embeds, i = objs.length - 1; i >= 0; i--) {
objs[i].setAttribute('quality', 'medium');
objs[i].src+="#r";

}

for (objs = document.getElementsByTagName('object'), i = objs.length - 1; i >= 0; i--) {
for (var c = objs[i].childNodes, j = c.length - 1, set = false; j >= 0; j--) {
if ((c[j].tagName == 'PARAM') && (c[j].getAttribute('name') == 'quality')) { c[j].setAttribute('value', 'medium'); set = true; break; }
}
if (!set) with (objs[i].appendChild(document.createElement('param'))) setAttribute('name', 'quality'), setAttribute('value', 'medium');

with (objs[i].parentNode) appendChild(removeChild(objs[i]));
}

that's the way it should be.

thanks to all of you for me, it just work awesome!.

 
philibuster User

This script doesn't work with hulu. I'm not sure why it doesn't like it, but hulu does some weird stuff with their flash, so maybe it's related to how they embed the SWF object. Is there a workaround? Thanks.

 
Justin Goldberg User
OperaWindows

Here's a similar script,
http://userscripts.org/scripts/review/63268

Do any of these scripts work on sites that don't have a quality control when right-clicked? such as nfl.com/live ?

 
MOHIT5 Scriptwright
Firefox

For youtube, you can do through user settings (from a blog) -
1. Go to YouTube Account page.
2. Under “Account” section, click the Video Playback Quality link.
3. Select the radio button for I have a fast connection. Always play higher-quality video when it’s available option in order to play video in higher quality by default.


4. Click the Save Settings button to make the change effective immediately.
5. To revert the selection, choose either Choose my video quality dynamically based on the current connection speed or I have a slow connection. Never play higher-quality video.

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