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

Nodelist.ForEach is not a function. #11

Open
Kris-88 opened this issue Oct 22, 2020 · 2 comments
Open

Nodelist.ForEach is not a function. #11

Kris-88 opened this issue Oct 22, 2020 · 2 comments

Comments

@Kris-88
Copy link

Kris-88 commented Oct 22, 2020

The ForEach function is used, in particular, in the wpdiscuz wordpress plugin.
The problem can be solved by adding a line before scripts.
NodeList.prototype.forEach = Array.prototype.forEach;
Is there a way to insert this polyfill into omni.ja?
Or is it possible to incorporate it into the browser in some other way?

@roytam1
Copy link
Owner

roytam1 commented Oct 22, 2020

this is gecko50's function: https://bugzilla.mozilla.org/show_bug.cgi?id=1290636

@Kris-88
Copy link
Author

Kris-88 commented Oct 22, 2020

Ok, we can't change the engine, but maybe we can add a "content-document-global-created" event for macros and inject a polyfill script?
$OnLoad event fires too late.

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

No branches or pull requests

2 participants