首页 开发者工具 Whiteout

Whiteout

用户数 : 20 分类 : 开发者工具 扩展大小 : 16.18KiB 最后更新时间 : 2019-11-19 版本 : 0.1.0
prev extension banner next extension banner
                            Very simple extension to remove Whitespace from github pull request reviews.

Normally, when reviewing a pull request to a code repository on Github.com, the diff displayed on the pull request will automatically include 'whitespace-only changes', i.e. a
tab added to the beginning of a line. There is a method to 'hide' whitespace-only changes, however, this will reset the moment you navigate away or to a new pull request. There
currently isn't a way to ensure this is the 'default' setting.

When this extension is installed and enabled, all github.com urls containing the expression /pulls/ will be rewritten to have ?w=1 as a query parameter (without mangling the other params). As a result, all Github code reviews will always ignore whitespace, rather than having to toggle it for each review (See example image). This is a useful feature when having to review a lot of code that has a lot of whitespace in it.

If Github someday makes this a profile setting rather than a transient one, this extension will no longer be needed.
                        
查看更多
下载 如何离线安装? Chrome store

分享

全部评论

    展开更多评论

    错误提示保存失败
    成功提示保存成功
    close
    qr-code

    为打击盗链困扰,本站已启用公众号验证
    微信扫码关注上方公众号,回复“插件”二字获得验证码,验证码5分钟内全站有效。

    正在验证
    验证成功
    下载遇到问题?请添加QQ群:398095333
    close
    qr-code

    为打击盗链困扰,本站已启用公众号验证
    微信扫码关注上方公众号,回复“脚本”二字获得验证码,验证码5分钟内全站有效。

    正在验证
    验证成功