Home >Web Front-end >JS Tutorial >TIL how to see the entire commit column on GitLab using JS

TIL how to see the entire commit column on GitLab using JS

DDD
DDDOriginal
2024-11-28 22:21:11484browse

This was quite a while back but I'm adding this here as a note-to-self thing.

Whenever you open CI/CD > Pipelines on GitLab you might often see something like this:

TIL how to see the entire commit column on GitLab using JS

You can see the whole thing by opening up the dev console on your browser and changing some CSS to fix the styling. Another way you can also see the entire column is by creating a new bookmark (on any page, it doesn't matter) and then edit the URL to be this:

javascript:(function(){var e=document.querySelectorAll('a.commit-sha.mr-0');for(var t=0;t<e.length;t++){e[t].parentNode.removeChild(e[t]);}var n=document.querySelectorAll('div.container-limited');if(n.length>0){n[0].style.maxWidth='2400px';}var r=document.querySelectorAll('a.ref-name');for(var t=0;t<r.length;t++){r[t].style.overflow='unset';}})();

TIL how to see the entire commit column on GitLab using JS

So then when you click it, the table will resize to look like below:

TIL how to see the entire commit column on GitLab using JS

TIL how to see the entire commit column on GitLab using JS

The above is the detailed content of TIL how to see the entire commit column on GitLab using JS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn