|
|
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,
|
|
|
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]));
}
|
|
|
That works beautifully. Thank you so much! You should add it to the script repository :) |
|
|
comment by Mikado
|
|
|
for reloading swf objects, i found that: swfObject.src+="#r"; works best. |
|
|
could you please place that into the code
|
|
|
where it says:
with (objs[i].parentNode) appendChild(removeChild(objs[i])); use: objs[i].src+="#r"; instead. |
|
|
// ==UserScript==
} for (objs = document.getElementsByTagName('object'), i = objs.length - 1; i >= 0; i--) {
that's the way it should be. thanks to all of you for me, it just work awesome!. |
|
|
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. |
![]() ![]() |
Here's a similar script,
Do any of these scripts work on sites that don't have a quality control when right-clicked? such as nfl.com/live ? |
![]() |
For youtube, you can do through user settings (from a blog) -
|


