Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
Scratchpad 预览

Scratchpad 作者: A Kistler

Replacement for the JavaScript Scratchpad editor removed in Firefox 72

4.2 (5 reviews)4.2 (5 reviews)
113 个用户113 个用户
您需要 Firefox 来使用此扩展
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
Editor in v0.7Options in v0.7
关于此扩展
Scratchpad provides an environment to experiment with JavaScript in Firefox. The item on the browser's Tools menu opens one or more separate windows which allow writing and running code that interacts with the active tab in the topmost window, in either the normal page context or Scratchpad's content context for the tab (with some limits) or in Scratchpad's background context.

Scratchpad uses CodeMirror 5, Copyright © Marijn Haverbeke and others. CodeMirror is released under the MIT License.
开发者留言
Notes on the permissions which Scratchpad uses:
  • "Open File ..." is really upload (i.e., load from disk).
  • "Save" and "Save As ..." are really download (i.e., save to disk). Scratchpad uses the Downloads permission for this reason. The extension Downloads API provides more functionality than HTML download, like feedback on whether the "save" was successful or not.
  • Scratchpad uses the Menus permission to add an item to the Tools menu.
  • Scratchpad uses the Storage permission to persist user preferences over time.
  • Scratchpad uses the <all_urls> permission to access all sources in all tabs to inject JavaScript, its core function.
  • Users can enable optional permissions as necessary for the code they write and run in Scratchpad.
Users who have Google Safe Browsing enabled will have network activity when saving files. Scratchpad itself never makes any network connection and sends no information anywhere. Users who don't wish to use Google Safe Browsing can disable it in the "Privacy & Security" tab of Firefox settings under "Deceptive Content and Dangerous Software Protection."

In no particular order, features I currently intend to add eventually include:
  • More CodeMirror features enabled (The extension validator rejects a lot of it, so there could be some patching involved.)
  • Per-scratchpad settings
From the statistics pages, the oldest FF versions seen as users:
  • FF 72 on 31 Mar 2023 through 8 May
  • FF 79 on 8 Jan 2023 (then never again)
  • FF 84 on 21 Feb 2023 through 4 Jun
评分 4.2(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
2
4
2
3
1
2
0
1
0
阅读全部 5 条评价
权限与数据详细了解

必要权限:

  • 下载文件和读取与修改浏览器的下载历史
  • 访问您在所有网站的数据

可选权限:

  • 读取和修改书签
  • 读取和修改浏览器设置
  • 获取剪贴板数据
  • 输入数据到剪贴板
  • 打开已下载至您的计算机的文件
  • 读取所有已打开的标签页中的文本
  • 获知您的位置
  • 获取浏览历史
  • 为您显示通知
  • 隐藏和显示浏览器标签页
  • 获取浏览器标签页
  • 获取浏览历史
  • 获知浏览器导航时的行为状态
更多信息
版本
0.7.1
大小
216.71 KB
上次更新
8 个月前 (2024年12月17日)
相关分类
  • 网页开发
许可证
Mozilla 公共许可证 2.0
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
0.7.1 的发布说明
Release notes for 0.7.1
Bug fix: lack of user activation can block open picker
Bug fix: button bar keeps focus when it shouldn't
Bug fix: special keys matching [PRS] handled incorrectly
Bug fix: incomplete descriptions (about) for permissions
Map Ctrl-O same as the "Open File ..." button
Focus editor cursor on pointer entry

Release notes for v0.7
Bug fix: count tabs correctly
Bug fix: 1px font size error at startup
Tab key obeys space/tab preference (default keymap)
Shift-Tab outdents instead of autodents (default keymap)
Remap Ctrl+[JOPRS] to prevent browser defaults
* Ctrl-P prints the code frame
* Ctrl-R same as the "Run" button
* Ctrl-S same as the "Save As ..." button
A Kistler 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。