Skip to content

Instantly share code, notes, and snippets.

@PhilippGrulich
Last active January 18, 2019 13:30
Show Gist options
  • Save PhilippGrulich/9dbed0f7559694f78a6ee5959eaf52e8 to your computer and use it in GitHub Desktop.
Save PhilippGrulich/9dbed0f7559694f78a6ee5959eaf52e8 to your computer and use it in GitHub Desktop.
Extend very large folder name on GitHub. For example in the Graal Repo
var content = document.querySelectorAll(".js-navigation-item .content");
var message = document.querySelectorAll(".js-navigation-item .message");
if(content[0].style.maxWidth=="550px"){
content.forEach(x=> x.style.maxWidth=""); message.forEach(x=> x.style.maxWidth="");
}else{
content.forEach(x=> x.style.maxWidth="550px"); message.forEach(x=> x.style.maxWidth="100px");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment