javascript 在Github上查看PR时折叠所有文件面板

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了javascript 在Github上查看PR时折叠所有文件面板相关的知识,希望对你有一定的参考价值。

javascript:void((function(d){d.querySelectorAll('div:not(.Details--on) > div.file-header[data-path*="spec"] > div.file-actions > button').forEach(function(x){x.click()});})(document));
javascript:void((function(d){d.querySelectorAll('div:not(.Details--on) > div.file-header > div.file-actions > button').forEach(function(x){x.click()});})(document));
// Open all
$$('div.file-header > div.file-actions .js-details-target').map(function(x){x.click()});

// Close all open
$$('div:not(.Details--on) > div.file-header > div.file-actions .js-details-target').map(function(x){x.click()});

以上是关于javascript 在Github上查看PR时折叠所有文件面板的主要内容,如果未能解决你的问题,请参考以下文章

怎么给开源项目提PR?

在 PR 上通过的所有检查的 Github API Webhook/Notification

sh 清除GitHub上合并PR的通知

如何使用 git 查看 GitHub 拉取请求?

github上测试服出现bug,如何回滚并获得合并之前的分支

如何在 API 触发的 repo 导入 GitLab 中包含 GitHub 问题和 PR?