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

Math in Address Bar 作者: em_te

Solve math equations in the address bar by typing 'math', then an empty space, then an equation like '(3^2 + 4^2)^(1/2)' and the answer will appear in the drop down menu.

4 (9 reviews)4 (9 reviews)
175 个用户175 个用户
您需要 Firefox 来使用此扩展
下载 Firefox 并安装扩展
下载文件

扩展元数据

屏幕截图
关于此扩展
Summary:
Allows you to work out simple arithmetic and trigonometric equations right from the address bar.

Syntax:
You can type something like:
  • math 10+20*30/40
and in the drop down suggestions menu will be the answer (notice the "= 25"):
  • math 10+20*30/40 = 25
You can type trigonometry too like:
  • math 10 + cos(rad(45)) + log(10) + PI*180 / (2^4 + atan(1))

Caveats:
Note that (^) is a "the power of" operator, and not a bitwise-or operator.
And that (~) is the "negative" operator, so negative 2 is "~2" and not "-2".

Supported constants:
Euler's constant (E), Natural log of 2 (LN2), Natural log of 10 (LN10), Base 2 log of E (LOG2E), Base 10 log of E (LOG10E), Pi (PI), Square root of 0.5 (SQRT1_2), Square root of 2 (SQRT2)

Supported (one argument) functions:
abs(x), acos(x), acosh(x), asin(x), asinh(x), atan(x), atanh(x), cube root (cbrt(x)), cos(x), cosh(x), radians to degrees (deg(x)), E to the power of x (exp(x)), log(x), log10(x), log2(x), degrees to radians (rad(x)), sin(x), sinh(x), square root (sqrt(x)), tan(x), tanh(x).

Additional Features:
  • If you type an equation and press the "enter" key, the result will be saved and an Address Bar icon will appear, which you can click to pull up the last 30 saved equations. The history is cleared when you close the browser.
  • If you use down arrow key to select the row with the answer, the address bar will be filled with nothing but the answer, allowing you to copy and paste it.

Competition:
Wait a minute. How is this better than me just typing Javascript in the address bar or using a bookmarket?

Firstly, the math is calculated in real-time and warns you whether the equation up to that point is malformed or has mismatching brackets. With Javascript you have to press enter to find out if there were errors and each time the cursor jumps to the end of the sentence. Secondly you can perform the whole thing with the keyboard, which you can't with bookmarklets. Then there's the history feature which saves the last 30 calculations.
评分 4(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
6
4
1
3
0
2
0
1
2
阅读全部 9 条评价
更多信息
版本
0.1.3resigned1
大小
15.54 KB
上次更新
1 年前 (2024年4月25日)
相关分类
  • 网页开发
  • 搜索工具
  • 外观
  • 其他
许可证
Mozilla 公共许可证 2.0
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
em_te 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

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

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

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

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