We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
hello utter devs
i want to implement reverse order of the comments in reverse on my site, but i cannot access the comments iframe bc of CORS :
Uncaught (in promise) DOMException: Permission denied to access property "document" on cross-origin object
i would make a pr, but no clue how the codebase works so lol
heres my code :
"use strict"; function sleep(ms) { return new Promise((resolve) => setTimeout(resolve, ms)); } async function main() { let comments = null; while (!comments) { comments = document.getElementsByClassName("utterances-frame")[0]; await sleep(1000); } comments = comments.contentDocument || comments.contentWindow.document; console.log(comments); } // document.addEventListener("DOMContentLoaded", main); main();
( also would be nice if yall added support for like utterences_on_load() or smt function so i wouldnt need that while loop lmao )
utterences_on_load()
The text was updated successfully, but these errors were encountered:
related : #182
Sorry, something went wrong.
No branches or pull requests
hello utter devs
i want to implement reverse order of the comments in reverse on my
site, but i cannot access the comments iframe bc of CORS :
i would make a pr, but no clue how the codebase works so lol
heres my code :
( also would be nice if yall added support for like
utterences_on_load()
or smt function so i wouldnt need that while loop lmao )The text was updated successfully, but these errors were encountered: