在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mcdamo/tab-image-saver开源软件地址:https://github.com/mcdamo/tab-image-saver开源编程语言:JavaScript 96.5%开源软件介绍:tab-image-saverTab Image Saver is a Firefox addon that makes it easy to save images from browser tabs you have open. Download from Firefox Addons. FeaturesBy default this addon saves the largest image found on the active tab. You may control how this functions by changing the addon preferences at in Firefox > Add-ons > Extensions > Tab Image Saver > Preferences or right-click the toolbar icon.
Path rulesPath rules are a flexible method for setting the image filenames when downloading. The Path rules syntax is based off template strings, this will be familiar to anyone who has coded Javascript. Path rules are processed top-down: if the first rule does not evaluate to a valid path then it will proceed to the next rule in the list and so on. VariablesThe following variables are available for use in Path rules
*Example source:
Boolean logicEmpty variables can be skipped with boolean logic using double-pipe: Example
This will attempt to find the filename extension from the URL, Content-Disposition header, Content-Type header, and finally if all else fails will use MethodsString methods can be chained to variables or strings in the Path rule. Zero paddingThe padStart method can be used to string pad the Example
This will use the index of the image in the active download session. The index is incremented for each image saved and processed in tab order. The output will be zero padded, such as String replacement and regular expressionsThe replace method can use regular expresions on variables. ExampleUsing
RulesetsRulesets can apply rules and options to a specific domain or url of the tab page. Rulesets are tested in order from top to bottom. Any pages that are unmatched by a Ruleset will default to the Global settings. The standard form of domain rule allows for simple wildcard matching (*). Domain rules can also be interpreted as a regular expression by wrapping in hash characters (#). Matching domainsThe following examples are for
FAQ
Filenames are |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论