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.
example html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Test page</title>
</head>
<frameset border="0" bordercolor="white" frameborder="no"
framespacing="0" rows="31,*,">
<frame name="menu" noresize scrolling="no"
src="_menu_content.php">
<frame name="content2" noresize src="main_content.php">
<noframes>
<body bgcolor="#ffffff">
<p></p>
</body>
</noframes>
</frameset>
</html>
GM code:
// ==UserScript==
// @name test update
// @namespace ----
// @include http://*page-url.com/*
// ==/UserScript==
GM_registerMenuCommand("Update: ScriptABC'", function ()
{ window.location.href= "http://another-url.com/scriptABC.user.js });
if (!window.location.toString().match(page-url.com/main_content.php'))
return;
window.location.href= "http://another-url.com/scriptABC.user.js";
It's truncated but it should reproduce the problem I expire.
This script would open the source code instantly into the
main_content.php frame instead of opening the mentioned GM
installation window.
In my view it's a bug. Can someone confirm this?
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/greasemonkey-users?hl=en.