Javascript 在IE10或imacros浏览器上强制flash播放器质量低

Javascript 在IE10或imacros浏览器上强制flash播放器质量低,javascript,imacros,Javascript,Imacros,我试图在imacros浏览器中降低flash player的质量,但我遇到了一个解析错误。闪存在我的笔记本电脑中消耗了大量的CPU,而且质量很低,性能应该很好 URL GOTO=javascript:for (var objs = document.embeds, i = objs.length - 1; i >= 0; i--) { objs[i].setAttribute('quality', 'low'); with (objs[i].parentNode) appe

我试图在imacros浏览器中降低flash player的质量,但我遇到了一个解析错误。闪存在我的笔记本电脑中消耗了大量的CPU,而且质量很低,性能应该很好

URL GOTO=javascript: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]));
}

我得到错误-1100:无法分析宏行:objs[i].setAttribute('quality','low');