Closed Thread Icon

Topic awaiting preservation: Override a pages javascript Pages that link to <a href="https://ozoneasylum.com/backlink?for=26462" title="Pages that link to Topic awaiting preservation: Override a pages javascript" rel="nofollow" >Topic awaiting preservation: Override a pages javascript\

 
Author Thread
bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 08-16-2005 01:44

Anyone ever done this with a FF extension or GreaseMonkey? Basically I have a page that breaks in FF because it tries to load frames using parent.frames(j) (The parentheses are incorrect it should be square brackets).

So what I'd like to do is overwrite the two functions at runtime with my own correct ones. Any ideas on how? I've built a small extension that I'd like to add this functionality to.



.:[ Never resist a perfect moment ]:.

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 08-16-2005 07:39

Normally to overwrite a function you just have to write a second version. At worst you may have to do something like : document.nameOfTheFunctionToOverWrite = function( arg1, arg2, ..., argN ){ /* body of your new function */ }

ps: If document.nameOf... does not work, try window.nameOf...

« BackwardsOnwards »

Show Forum Drop Down Menu