Github module links

Inserts direct repository links for modules used in source code on github.

目前为 2017-12-18 提交的版本,查看 最新版本

作者
klntsky
评分
0 0 0
版本
1.0.1
创建于
2017-12-18
更新于
2017-12-18
大小
7.4 KB
许可证
MIT
适用于

github-module-links

This userscript inserts direct repository links for modules used in source code on github. Currently only JS & npm are supported.

Preview

Repo URLs are being fetched from npmjs registry. Relative imports are also linkified.

Check the source code for configurable options.

Installing

Follow the userscript installation instructions.

The file is located here.

TODO

  • find more elegant way to listen for page content changes than setInterval with checker function (defeat that ugly AJAX navigation)
  • DONE add support for import something from 'some-module' notation
  • DONE replace system modules with links to their sources instead of security-holder module
  • process repository URLs more carefully (consider rare cases when repository.type is not git, etc.)
  • consider adding more programming languages and package registries
  • add link to the main file of the module instead of the repository