Skip to content

scagogogo/mvnrepository-helper-UserScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repo1.maven.org Helper 油猴脚本

此脚本是为了提升Maven中央仓库的使用体验。

从油猴商店安装:

https://greasyfork.org/zh-CN/scripts/471802-repo1-maven-org-helper

功能一:GAV快速访问详情页

不开启脚本的情况:

image-20230521195256248

开启脚本之后会在页面底部增加几个输入框,在输入框中输入GroupIdArticleIdVersion之后单击Go按钮访问到对应的详情页:

image-20230521195239339

比如这样,输入fastjsongroupIdarticleIdversion单击Go按钮可将当前页面定位到:

https://repo1.maven.org/maven2/com/alibaba/fastjson/2.0.9/

image-20230521200329668

其中ArticleIdVersion都是可以省略的,比如省略Version

image-20230521200922731

比如同时省略ArticleIdVersion

image-20230521200948849

其中GroupId可以输入com.alibaba:fastjson的形式:

image-20230521200804487

另外三个输入框都有历史输入记录。

功能二:展开因为过长而被隐藏的文本

开启插件之前,可以看到文本超出部分都被隐藏了,当他们前缀相似的时候很难区分到底谁是谁:

image-20230727112824602

开启插件之后,将被隐藏的文本显示全,同时保证布局不会乱掉(在某些窄屏可能会有问题,稍微宽一点的屏基本都没问题):

image-20230727112809379

在详情页未开启插件:

image-20230727113109999

开启了插件之后:

image-20230727113126701