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

document.location.href = "....user.js" fails in framesets #1248

Closed
arantius opened this issue Jan 19, 2011 · 1 comment
Closed

document.location.href = "....user.js" fails in framesets #1248

arantius opened this issue Jan 19, 2011 · 1 comment
Milestone

Comments

@arantius
Copy link
Collaborator

I can provide more informations concerning this.
document.location.href = "...user.js"; won't trigger GM installation
window if the website is using framesets and the script is just
triggered in one of these frames.

From: http://groups.google.com/group/greasemonkey-users/t/ab54d9b272bb955d?hl=en

@arantius
Copy link
Collaborator Author

Confirmed that this will fail: https://gist.github.com/919910

But just change "document" to "top.document" and it works as intended.

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

1 participant