<https://lh3.googleusercontent.com/-k8-bmhvIC6U/WU511ka_pUI/AAAAAAAABXs/Y7vtRM2OF2Id-_8wlnpJOF_OiFIS9gJeQCLcBGAs/s1600/abc.png>
I am slowly learning but i ran into a problem when i couldn't find the 
right tut to fix my script. I play a game called Ourworld which is flash 
based. in this game they also load another flash game to the flash game. I 
am able to force low quality on first website but cannot force low on the 
flash game within the flash game. Can someone help me find a way to target 
the element or flash game to set on low please. The red outline is the 
flash game i want to target on love. The script can only target the Green 
outlined flash game because its the first element of flash but cannot 
target the second element. If you can help me i would greatly appreciated.


Object/game:

<object type="application/x-shockwave-flash" style="visibility: visible; 
z-index: 20; display: block; position: absolute; top: 80.7273px; left: 
26.9091px; width: 1148.12px; height: 765.414px;" id="game" name="game" 
swf="https://cdn-ssl.ourworld.com/i/games/epacegames/defendyournuts/defendyournuts.swf?v=244.5914.17-a-main-2017-06-17";
 
data="https://cdn-ssl.ourworld.com/i/games/epacegames/defendyournuts/defendyournuts.swf?v=244.5914.17-a-main-2017-06-17";
 
width="1148.121212121212" height="765.4141414141415"><param name="wmode" 
value="direct"><param name="allowScriptAccess" value="always"><param 
name="base" 
value="https://cdn-ssl.ourworld.com/i/games/epacegames/defendyournuts/";><param 
name="flashvars" 
value="flowplaySession=477c2d138909136105b7e5b572870fe3&amp;flowplayLocalTrace=false&amp;flowplayPathOffset=https://cdn-ssl.ourworld.com/ow/games";></object>

Force Low Quality script:
// ==UserScript==
// @name           Force Low Quality Flash
// @namespace      http://userscripts.org/users/75739
// @include *
// ==/UserScript==

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]));
}

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to