Load remote script from your userscript extension

Just not to lose snippet/solution that I’d been looking for quite some time paste it here:

var load,execute,loadAndExecute;load=function(a,b,c){var d;d=document.createElement("script"),d.setAttribute("src",a),b!=null&&d.addEventListener("load",b),c!=null&&d.addEventListener("error",c),document.body.appendChild(d);return d},execute=function(a){var b,c;typeof a=="function"?b="("+a+")();":b=a,c=document.createElement("script"),c.textContent=b,document.body.appendChild(c);return c},loadAndExecute=function(a,b){return load(a,function(){return execute(b)})};

and example (loading jQuery):

loadAndExecute("//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", function() {
$("#answer-6825715").css("border", ".5em solid black");

taken from stackoverflow.

Making Jira better

Our team found that it was not so convenient to have avatars for assigned developers only for Plan mode and not for Work (Rapid board of Jira Agile).

I’d create a question about that issue on Atlassian Answers, but unfortunately the answer was “Unfortunately this is not possible due to the way User Stories are displayed in the system.

I had a thought “why not to tweak it with userscript?” and solution came after:


You are welcome with criticism and suggestions.