could you use something else than
document.onreadystatechange = function() { /* run ghostery script here*/ } in order to run your script onload?
the extension is killing my script...
-
Hi Daniel,
Could you describe your issue in more detail please? -
-
I have a website which is already having a
document.onreadystatechange = function () {
}
feature and when using the Ghostery extension it kills my script :o -
-
What do you mean by, "kills my script"? Is there a JavaScript error? Does the page crash?
-
-
Ghostery overwrites my document.onreadystatechange = function () {} :D
e.g.
http://bangit.at/lips/ (work in progress) -
-
CHAMP
1Chrome extensions should not have any effect on page JavaScript by design: https://developer.chrome.com/extensio...
I also visited your link with and w/o Ghostery, and did not see a difference. What should I be seeing?
Are you sure the issue is Ghostery? -
-
Ok,.. just did some more testing against Ghostery Options and it only overwrites the script when "GhostRank" is on.
If I turn on Ghostery I only get a black background, and the console.log will only show:
interactive
not
interactive
complete
if I go to the Chrome Console and types in:
document.onreadystatechange
it returns:
function () {
state = document.readyState;
if (state == "complete") {
analyzePageInfo();
}
}
not:
document.onreadystatechange = function () {
console.log(document.readyState);
.........
}
this doesn't change anything it I choose to pause Ghostery or Stop Blocking bangit.at... the only way to bypass this is to disable Ghostery totally.
using Ghostery 4.1.0 and 23.0.1271.91 m -
-
Looks like a bug in Chrome 23.0.1271.91 m ... It doesn't appear to be present in Chrome Canary (which is 25-something).
- view 1 more comment
-
-
have you tried turning "GhostRank" on in the options? because it happens in Canary for me as well there...
Version 25.0.1346.0 canary -
-
and you might want to refresh the page a few times, for some reason GhostRank isn't injected always
-
-
-
Loading Profile...



Twitter,
Facebook, or email.
