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

Opal DevTools 作者: stofu1234

Ruby/Opal REPL for Firefox DevTools - Execute Ruby code directly in your browser

0(0 条评价)0(0 条评价)
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
Basic Ruby REPL usage - Execute Ruby code directly in DevTools with puts output and array operationsAdvanced features - Navigate modules with cd/ls commands, include mixins, and use localStorage helpersCode inspection - List constants, explore class methods with ls command, and inspect validation rulesExtension settings popup - Configure Opal detection mode and auto-inject options
关于此扩展
Opal Browser REPL - Ruby in Your Browser DevTools

Execute Ruby code directly in your browser's developer tools! This extension adds an "Opal REPL" panel to Firefox DevTools, allowing you to run Ruby code in the context of any web page.

🔷 TRY IT NOW

Visit our playground to test the extension:
https://stofu1234.github.io/opal-vite/ja/playground.html
  1. Open the playground page
  2. Press F12 to open DevTools
  3. Click the "Opal REPL" tab
  4. Start typing Ruby code!

🔷 FEATURES

• Interactive Ruby REPL in DevTools
• Pry-like commands (ls, cd, help, history)
• Command history with arrow key navigation
• Multi-line input support (Shift+Enter)
• Auto-inject Opal runtime on any page
• Works with pages that already have Opal loaded

🔷 COMMANDS

• help - Show available commands
• ls - List methods, variables, and constants
• ls obj - List methods of a specific object
• cd obj - Change context to explore objects
• history - Show command history

🔷 SETTINGS

Click the extension icon to access settings:
• Opal Detection Mode - Only show panel when Opal is detected
• Auto-inject Opal - Automatically inject Opal runtime if not found

🔷 TIPS

• Use backticks for inline JavaScript: document.title
• Use $_ to access the last result
• Press Ctrl+L to clear the console

🔷 LIMITATIONS

This extension uses eval() to execute Ruby code. Pages with strict Content Security Policy (CSP) that block 'unsafe-eval' are not supported. Use our playground page for the best experience.

🔷 OPEN SOURCE

GitHub: https://github.com/stofu1234/opal-browser-repl
Built with Opal - Ruby to JavaScript compiler (https://opalrb.com)

🔷 PRIVACY

This extension does not collect any personal data. All code execution happens locally in your browser.
评分 0(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
0
4
0
3
0
2
0
1
0
尚无评价
权限与数据

必要权限:

  • 让开发者工具可以存取您打开的标签页中的数据

收集的数据:

  • 开发者称此扩展无需收集数据。
详细了解
更多信息
附加组件链接
  • 主页
  • 用户支持网站
  • 支持邮箱
版本
0.1.12
大小
859.48 KB
上次更新
24 天前 (2025年12月27日)
相关分类
  • 网页开发
许可证
MIT 许可证
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
转至 Mozilla 主页

附加组件

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

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

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

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