1)To make custom user regex functioning. Is that possible? The other solution would be to put it into advanced plugin settings.
EDIT: I have also found that instead of writing:
regexstr="^gcal (.*?)=$";
scriptregex=/^gcal (.*?)=$/;
we can use
regexstr="^gcal (.*?)=$";
scriptregex = new RegExp(regexstr);
EDIT: and further writing
aliasstr="gcal";
pre_regexstr="^gcal ";
post_regexstr="(.*?)=$";
regexstr=pre_regexstr+post_regexstr;
scriptregex = new RegExp("^.*? "+post_regexstr);
user can set his own custom alias + regex but only the first part of it. So it can be also solution, but it is not the best...
2) When user saves (hits OK) advanced plug-in setting would call some callback function with user settings instead of just saving it
3) To implement all HTML FORM elements such as select, option etc. to advanced plugin settings
4) To logically separate *.js file and *.dll with separate updating etc.
Hopefully it is not toooo complicated to implement the requests