admin管理员组文章数量:1221786
Question is in the title. It would be handy feature in pull requests, when adjusting branch policies or when you're searching for a specific branch.
Here’s my current workaround:
javascript: (function(){
if(!window.location.hostname.endsWith('.visualstudio'))
{
alert("You must be on Azure DevOps to minimize the folders.");
return;
}
let targets = Array
.from(document.querySelectorAll('.cursor-pointer.ms-Icon--ChevronDownMed'))
.reverse();
let delay = 0; //delay required to await collapse??
for(let t = 0; t < targets.length; t++)
{
window.setTimeout(function(){
targets[t].click();
}, delay);
delay += 50;
}
})();
When you minify that JS above, you can add it as a link to your browser bookmarks. The button from your bookmarks will collapse folders, in the current view on Azure DevOps. But I honestly would prefer a maintenance-free solution... Further inputs would be very welcome.
本文标签: How do i collapse all folders in Azure DevOps (web)Stack Overflow
版权声明:本文标题:How do i collapse all folders in Azure DevOps (web) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1739329817a2158426.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论