我正在使用自动填充插件https://addons.mozilla.org/pl/firefox/addon/autofill-262804/
,我想用定义的随机文本填充文本字段。例如,我想用以下定义之一填充/* City */ city|town
字段:London, Paris, Amsterdam
但是我不知道该怎么做。
开发人员说:
变量–使用特殊变量输出随机词(文本微调器),数字和字母数字字符
所以有可能。
请帮助我。
或者也许您知道用自定义的随机文本自动填充字段的任何附件/方法
尽管悬赏于您的问题,但我设法找到了解决方案-我也很难在Google网上论坛页面和开发者的网站上找到它,直到我找到他的"other" page,其中指出:
展开变量–如果选中此框,{...}将替换为变量的输出。当前可以使用三种类型的变量:
{word1|word2|...} – This variable acts like a text spinner, randomly outputting one word from a list of words that you specify. Example: to output "house", "condo", "apartment", or "flat", you would enter {house|condo|apartment|flat}
{#} or {#number} – This variable outputs a random number. You can specify the number of digits after # ({#1} is equivalent to {#}). Example: to generate a random telephone number, you would enter ({#3}) {#3}-{#4}
{$} or {$number} – This variable outputs a random alphanumeric string. You can specify the number of characters after $ ({$1} is equivalent to {$}). Example: to generate a 16-character dummy text string, you would enter {$16}
例如,在元素的自动填充值框中,输入:
{$6}@{$6}.com
将在电子邮件地址中插入6个随机字母,后跟@,然后是6个随机字母,然后是.com。
自动填充的值应为:
{London|Paris|Amsterdam}
{{$}随机字母数字字符串
好吧,如果我只想大写a-z怎么办?