I’m working on browser-extension in facebook, now my problem is that facebook override the setTimeout & setInterval native functions, and their implementation do not work on Internet Explorer.
Is there a way to implement those functions?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could create an iframe and then access it’s
windowobject, get the freshsetTimeoutdefinition and overwrite the one in your global namespace :Although this works, it’s probably not a good ideea for 2 scripts to start overwriting each other’s variables. I suggest you let FB to take control over the
setTimeoutfunction and you use the fresh copy of it, but not to overwrite it again (you can store it in a local var, or in a global variable with another name).