新打开的Firefox Scratchpad包含以下文本:
/*
* This is a JavaScript Scratchpad.
*
* Enter some JavaScript, then Right Click or choose from the Execute Menu:
* 1. Run to evaluate the selected text (Ctrl+R),
* 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or,
* 3. Display to insert the result in a comment after the selection. (Ctrl+L)
*/
我想把它改成更有用的东西
(function(){
})();
多么?
发布于 2015-08-15 19:40:52
假设我们有运行在Windows7上的火狐v38,安装在一个文件夹{path_to_ff}
中。
文件{path_to_ff}/browser/omni.ja
包含了许多有用的东西,定义了FF的内部结构。这个文件是一个.jar
文件,所以您可以使用您最喜欢的文件存档器打开/解压缩它。
这个便签的介绍文本仅仅是位于omni.ja/chrome/{lang}/locale/browser/devtools/scratchpad.properties
中的包中的文本资源({lang}
是FF地区的语言代码,在我的例子中是“fr”)。此文本存储在scratchpadIntro1
键下:
# LOCALIZATION NOTE (scratchpadIntro): This is a multi-line comment explaining
# how to use the Scratchpad. Note that this should be a valid JavaScript
# comment inside /* and */.
scratchpadIntro1=/* THE TEXT */
当您更改文本时,请确保将其保留在一行上,并更新omni.ja
文件。FF也应该重新启动,以便更改生效。
https://stackoverflow.com/questions/29440292
复制相似问题