trespassersW Author

Re: @Farow: Wouldn't you have to reset the username in sessionStorage?

Browser automatically clears sessionStorage after tab closing.

And, if an user isn't logged in Google (or something like that), your script falls into an infinite loop.





Re: @cuzi:

At the moment I use GM_setValue/GM_getValue and setInterval to regularly check for a changed value.

if you don't like timers, you may track the changes of GM_values inside window.onfocus event handler.





Re: @Marti:

Did you try just calling a synthetic click event on the node element? e.g. someNode.click();

It should work if a node has click() method. If it hasn't (<a> element for ex.), the call of dispatchEvent(click) does nothing.
The only thing I can advise in this situation -- to simulate the behavior of mouse click using lower-level functions (window.open,
XMLHttpRequest..)








First discussion page is disordered by this post.
For myself, I solved this problem using stylish and next css:

  .tr-link td, .tr-link-a, .tr-link .label, 
  .td-fit
  { white-space: normal !important;
    word-wrap:break-word !important;
  }
  .td-fit { width:auto !important; }
  .table .tr-link td { max-width: 600px !important;}




Testing markdown Fenced code blocks


original JS::

// Add the old object onto the stack (as a reference)

ret.prevObject = this;

ret.context = this.context;

if ( name === "find" ) {

ret.selector = this.selector + (this.selector ? " " : "") + selector;

} else if ( name ) {

ret.selector = this.selector + "." + name + "(" + selector + ")";

}

return ret; /* Slash-star comment */

}

four spaces in the beginning of line::

// Add the old object onto the stack (as a reference)
ret.prevObject = this;
ret.context = this.context;
if ( name === "find" ) {
  ret.selector = this.selector + (this.selector ? " " : "") + selector;
} else if ( name ) {
  ret.selector = this.selector + "." + name + "(" + selector + ")";
}
return ret;     /* Slash-star comment */
}

same code, enclosed in backticks::

    // Add the old object onto the stack (as a reference)
    ret.prevObject = this;
    ret.context = this.context;
    if ( name === "find" ) {
      ret.selector = this.selector + (this.selector ? " " : "") + selector;
    } else if ( name ) {
      ret.selector = this.selector + "." + name + "(" + selector + ")";
    }
    return ret;     /* Slash-star comment */
    }

the result is somewhat surprising


How do we tag our scripts ... ?
I think it's very simple: enter Edit Mode; then
ScriptGroup
type your group name


Now we only can see the list of most downloaded scripts. So, all the others are convicted to die in obscurity?



Today, Edit Mode window is appearing on the screen, but Save button doesn't work. Nevertheless, this is a progress.