Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layoutstats crashes on pages that include prototype.js #13

Closed
fbuchinger opened this issue Mar 23, 2017 · 0 comments
Closed

layoutstats crashes on pages that include prototype.js #13

fbuchinger opened this issue Mar 23, 2017 · 0 comments
Labels

Comments

@fbuchinger
Copy link
Owner

fbuchinger commented Mar 23, 2017

Reproduce:
Inject layoutstats.js with Tampermonkey on https://web.archive.org/web/20120204164847/http://www.nytimes.com/

which gives the following console error:

Uncaught TypeError: this.each is not a function
    at NodeList.findAll (https://web.archive.org/web/20120204181535js_/http://js.nyt.com/js2/build/sitewide/sitewide.js:1:26980)

Reason: Prototype.js is overwriting Array.prototype.map (sic!) that layoutstats.js relies on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant