---
title: 用鼠标手势实现 Firefox 的 Paste and Go
date: 2009-09-03T09:56:24Z
modified: 2009-09-03T08:58:49Z
permalink: "https://www.appinn.com/gestures-firefox-paste-and-go/"
type: post
status: publish
excerpt: ""
categories:
  - Firefox
tags:
  - Firefox
  - pasteandgo
  - 鼠标
  - 鼠标手势
featured_image: "https://www.appinn.com/wp-content/uploads/medium-66.jpg"
author: scavin
timestamp: 2009-09-03T08:58:49Z
---

随着 [Chrome](http://www.appinn.com/tag/chrome) 的渐渐流行，其地址栏方便的 **Paste and Go** 功能也开始深入人心，但有多少人[知道其实](https://twitter.com/Thruth/statuses/3668323363) Paste and Go 功能是 Opera 首创的呢？@Appinn

![](https://static2.appinn.com/images/img1/yupoo/jdvip/89346802f782/medium.jpg)

能折腾的 Firefox 用户真的开始折腾了，有同学在 **小众 Group** [求地址栏粘贴并打开扩展](https://groups.google.com/group/scavin/browse_thread/thread/47321a488c94d442)，得到了 [Paste and Go 3](https://addons.mozilla.org/zh-CN/firefox/addon/9133) 这个扩展，而 [二猪](http://runningwaterpro.blogbus.com/) 同学带来的鼠标手势脚本，相当与众不同。

首先需要安装 [FireGestures](https://addons.mozilla.org/zh-CN/firefox/addon/6366) 扩展。FireGestures 支持脚本，打开选项，添加一个新的脚本，如图。而鼠标手势应该是必备扩展了，这样就可以少安装一个扩展。

![](https://static2.appinn.com/images/img1/yupoo/jdvip/21268802fa09/medium.jpg)

脚本内容如下：

`<br></br>const IN_NEW_TAB = true;<br></br>const IN_BACKGROUND = false;`

`var str = readFromClipboard();<br></br>if (!str)<br></br>return;<br></br>if (IN_NEW_TAB)<br></br>gBrowser.loadOneTab(str, null, null, null, IN_BACKGROUND, false);<br></br>else<br></br>gBrowser.loadURI(str);`

如此，@scavin 这里设置的是 右下左，即顺时针半圈，就可以在新标签页中打开剪贴板中的网址。当然，如果 二猪 同学能添加非 URL 在剪贴板中就使用搜索，那就更完美了。

## Topics

**分类目录:** [Firefox](https://www.appinn.com/firefox2.md)

**标签:** [Firefox](https://www.appinn.com/firefox2.md), [pasteandgo](https://www.appinn.com/tag/pasteandgo/?output_format=md), [鼠标](https://www.appinn.com/tag/%e9%bc%a0%e6%a0%87/?output_format=md), [鼠标手势](https://www.appinn.com/tag/%e9%bc%a0%e6%a0%87%e6%89%8b%e5%8a%bf/?output_format=md)