userscripts – Stepan Suvorov Blog https://stepansuvorov.com/blog Release 2.0 Sat, 25 Jul 2015 20:35:20 +0000 en-US hourly 1 https://wordpress.org/?v=6.3.1 Load remote script from your userscript extension https://stepansuvorov.com/blog/2015/07/load-remote-script-for-your-userscript-extension/ https://stepansuvorov.com/blog/2015/07/load-remote-script-for-your-userscript-extension/#respond Sat, 25 Jul 2015 20:35:08 +0000 http://stepansuvorov.com/blog/?p=2766 Continue reading ]]> Just not to lose snippet/solution that I’d been looking for quite some time paste it here:

[javascript]
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)})};
[/javascript]

and example (loading jQuery):

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

taken from stackoverflow.

]]>
https://stepansuvorov.com/blog/2015/07/load-remote-script-for-your-userscript-extension/feed/ 0
Making Jira better https://stepansuvorov.com/blog/2014/11/making-jira-better/ https://stepansuvorov.com/blog/2014/11/making-jira-better/#respond Sat, 15 Nov 2014 21:08:09 +0000 http://stepansuvorov.com/blog/?p=2065 Continue reading ]]> 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:

jira-agile-avatars.user.js

You are welcome with criticism and suggestions.

 

]]>
https://stepansuvorov.com/blog/2014/11/making-jira-better/feed/ 0