I have always this problem.
And as usual i am not coder
;-)
Thanks to help me.
If it can help, Here the code i found in this script for the click action :
userPhotoClick: function(el, evt) {
if (evt) {
evt.preventDefault();
evt.stopPropagation();
GM_log(evt);
evt.returnValue = false;
}
// Establish the new pop-up menu that will be used for
"/photos/UserName/" links:
// GM_log(el.id + ' from ' + this.ms);
var dispid = this.registerUserPhoto(el);
var uname = this.getTranslation(dispid, 'uname');
var purl = this.getTranslation(dispid, 'purl');
var nsid = this.getTranslation(dispid, 'nsid');
var colHash = this.colors4user( purl );
// GM_log("User click on "+el.id+" ("+el+") = "+dispid);
// Close box and name:
var html = "<span class='CancelButt'>[x]</span> <b>"+
(uname ? uname : dispid)+
"</b> <span style='color:green;cursor:help' id='"+
this.fids.csfHelp+"'>[?]</span>\n<div id='currentColors'>";
for (var ucol in colHash) {
html += this.userColorBlock( colHash[ucol], 'SetColor' );
}
html += "</div>\n";
*And this one:*
checkClickEvent: function(evt) {
if (!evt) {
GM_log("Click event fails to pass the event object!");
return false;
}
if (evt.which != 1) return false; // Only consider for left button
var el = evt.target;
while (1) {
if (el.getAttribute && el.getAttribute('userPhoto')) {
// This is a link to a user photo stream
return this.userPhotoClick(el, evt);
}
if (!el.parentNode) break;
el = el.parentNode;
}
// GM_log("Click on "+el+" deemed not a user photo link");
return false;
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.