jc3213 / download_with_aria2

The browser extenson for aria2 download utility via JSON-RPC
GNU Lesser General Public License v2.1
60 stars 8 forks source link

关于右键菜单 | About the contextmenu #76

Closed jc3213 closed 9 months ago

jc3213 commented 9 months ago

Discussed in https://github.com/jc3213/download_with_aria2/discussions/75

Originally posted by **jc3213** October 12, 2023 ```html ``` 我收到反馈,右键菜单下载上述元素的时候,会发生优先下载链接——即`a`的`href`属性,而当`a`不存在`href`属性时才会下载图片。 这样当特定情况下想下载图片而不是链接的时候无法工作。这样的话我考虑分离这个混合功能,针对图片,链接,分别做一个菜单,此时加上“下载所有图像”这个菜单,存在3个菜单。因此我考虑修改菜单的布局。 一个主菜单,三个子菜单。由于Edge会自动折叠干脆手动修改,这样能缩短子菜单的字符数量。 I've got some suggestion that if use `Download this with Aria2` contextmenu, It will download url rather than image in the sample above. The extension only download image when the `href` attribute for `a` is not exist I've decided to rework the contextmenu, make a main menu, three sub menu, since Microsoft Edge make contextmenu cascade d automatically. This will also have less characters for sub menus.