[英]Save firefox developer tools javascript command history
I use Developer Tools Console to run JavaScript commands. 我使用Developer Tools Console来运行JavaScript命令。 It is currently showing history of about 40-50 executed commands accessible using Up Arrow key
. 它目前显示使用Up Arrow key
可访问的大约40-50个已执行命令的历史记录。
In the history it is showing repeated commands multiple times and the earlier commands I executed 4-5 days ago have vanished. 在历史中,它多次显示重复的命令,而我在4-5天前执行的早期命令已经消失。
Any Idea how to recover/save this history OR expand history to save unlimited commands (like in normal console)? 任何想法如何恢复/保存此历史记录或扩展历史记录以保存无限命令(如在普通控制台中)?
There is no way (as of Firefox 55.0.1) to specify an actually unlimited number of history items to keep. 没有办法(从Firefox 55.0.1开始)指定实际上无限数量的历史项目。 However, you can specify a larger number, up to 2147483647. To do so, go to about:config
. 但是,您可以指定一个更大的数字,最多2147483647.要执行此操作,请转到about:config
。 Then, change the preference devtools.webconsole.inputHistoryCount
to the integer value which you desire. 然后,将首选项devtools.webconsole.inputHistoryCount
更改为您需要的整数值。 The default is 50. 默认值为50。
You can verify that there's no way to specify an unlimited size from the source code . 您可以验证无法从源代码中指定无限大小。
Any Idea how to recover/save this history 任何想法如何恢复/保存此历史记录
There is no way to recover older, forgotten history (see source code linked above). 无法恢复旧的,被遗忘的历史记录(请参阅上面链接的源代码)。 It is forgotten. 它被遗忘了。
The only way I have found to save such code (beyond what is stored in the history) is to copy and paste it into some other location. 我发现保存此类代码的唯一方法(超出历史记录中存储的内容)是将其复制并粘贴到其他位置。 You could make a legacy add-on which made saving this history easier, but not a WebExtension. 您可以创建一个遗留附加组件,这样可以更轻松地保存此历史记录,但不能保存WebExtension。 In a brief search, I did not find an already existing add-on to do so. 在简短的搜索中,我没有找到已经存在的附加组件。
You can find more general information at: 您可以在以下位置找到更多一般信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.