一个扩展管理器来取代谷歌的webstore
maninex的Python项目详细描述
嗯,“经理”可能有点过分了。这个主意不一定非得 使用Chromium类浏览器时手动查找并安装更新 它不使用webstore插件来处理这些事情。这是 通过雇佣 this 使用JSON首选项文件指向本地扩展名的方法 包装。
安装
如果您在archlinux上,可以通过arch用户存储库安装maninex。使用您喜爱的AUR助手或简单的git:
git clone https://aur.archlinux.org/maninex.git cd maninex makepkg -sri
在其他发行版上,您可以使用pip安装maninex并处理依赖项(一个:请求)。
pip install maninex
maninex不会在低于3.5的python版本上运行。
用法
usage: maninex [option] options: -h, --help show this help message and exit -c, --clean clean up (i.e. remove) backed up extension files -i, --install install all extensions that aren't already installed -l, --list list all extensions and their current status -p, --print-skel print the contents of a skeleton config file to stdout -r, --remove remove all extensions that are installed but not in the config file -s, --scan scan for installed extensions not in the config file and add them to the config file -u, --update update all extensions set up paths and extensions in maninex.conf
maninex依赖于一个名为“maninex.conf”的配置文件 它有三个位置:首先在$xdg_config_home中,然后在 $home/.config并最终位于脚本所在的同一目录中。 maninex --print-skel用一些基本的 说明。因此,要开始,您可以运行 maninex --print-skel > ~/.config/maninex.conf。
编辑maninex.conf并根据其ID在[扩展名]下添加扩展名 头球。您可以使用scan选项手动添加扩展名 之前安装(见下文)。要查找分机的ID,请搜索 它在Chrome WebStore上。 扩展页url的最后一部分是id。 this 是ublock源的url,因此其id是 “cjpalhdlnbpafiamejdnhcphjbkeiagm”。每个扩展标识都应该占用一个 [扩展名]标题下的行。也可以预先设置 扩展名的标识符如下: uBlock Origin = cjpalhdlnbpafiamejdnhcphjbkeiagm
建议这样做,因为这样会使消息更具描述性,因为 示例Extension "cjpalhdlnb…" installed.将变成 Extension "uBlock Origin" installed.
运行maninex -i在配置文件中安装所有扩展名。跑步 maninex -u以查找和下载更新。
其他功能
–清洁
这将删除以前备份的旧扩展文件 更新。
–列表
列出配置文件中的所有扩展名以及它们是否 已安装。
–扫描
扫描扩展目录并将所有扩展添加到配置文件 这还不包括在内。
–移除
与扫描相反。删除不包含在 配置文件。