It still doesn't work, the code now is:

(function () {
        var external = document.links;
        for (var k=0; k<external.length; k++)
        external[k].removeAttribute('target');
})();

Look, the page is "http://cavcity.com/cube/#";, I included:
http://cavcity.com/cube/#
http://cavcity.com/cube/*

The main site is flash, once you navigate through the flash and click
something, opens up an iframe where al the content is loaded. In that
content, is the web which has this target issues.

Maybe is the iframe making trouble with the code? Because it still
doesn't work.
Thanks very much.





On 18 feb, 16:10, Anthony Lieuallen <[email protected]> wrote:
> On 02/18/10 13:28, Webflashing wrote:
>
> >    if (external[k].href&&  external[k].target=="_new")
> >    external[k].target = "_self";
>
> Just:
>    external[k].removeAttribute('target')
> should suffice.  Unless there's a base target in the page, too.  Either
> way, don't bother with the complex tests, you could simply:
>    external[k].setAttribute('target', '_self')
> unconditionally.

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to