nettrotter
火狐狸
火狐狸
  • UID19393
  • 注册日期2007-06-12
  • 最后登录2014-04-26
  • 发帖数149
  • 经验13枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
阅读:2920回复:2

【已解决】修改Firegestures“复制鼠标划过的链接地址”

楼主#
更多 发布于:2008-11-21 18:41
Firegestures中有个按键手势,按住shift或者ctrl键,鼠标划到的链接地址能被全部复制到粘贴板里面,非常方便于批量转移帖子的链接。
现在想问问,有没有人能够把这个功能里的复制链接地址改变成以url text 形式,同时复制链接文字和地址??
nettrotter
火狐狸
火狐狸
  • UID19393
  • 注册日期2007-06-12
  • 最后登录2014-04-26
  • 发帖数149
  • 经验13枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
1楼#
发布于:2008-11-21 18:41
不知道是不是要修改这个代码。

onExtraGesture: function(event, aGesture)
        {
                this.setStatusText("");
                switch (aGesture) {
                        case "wheel-up":
                        case "wheel-down":
                        case "rocker-left":
                        case "rocker-right":
                        case "keypress-ctrl":
                        case "keypress-shift":
                                this.onMouseGesture(event, aGesture);
                                return;
                        case "keypress-start":
                                this._linkURLs = [];
                                this._linkElts = [];
                                break;
                        case "keypress-progress":
                                var linkURL = this.getLinkURL(event.target);
                                if (!this._linkURLs)
                                        this._linkURLs = [];
                                if (linkURL && this._linkURLs.indexOf(linkURL) < 0) {
                                        try {
                                                this.checkURL(linkURL, event.target.ownerDocument);
                                                this._linkURLs.push(linkURL);
                                                this._linkElts.push(event.target);
                                                event.target.style.MozOutline = "1px dashed darkorange";
                                        }
                                        catch(ex) {}
                                }
                                break;
                        case "keypress-stop":
                                for (var i = 0; i < this._linkURLs.length; i++) {
                                        this._linkElts[i].style.MozOutline = "";
                                        this._linkElts[i] = null;
                                }
                                this._linkURLs = null;
                                this._linkElts = null;
                                break;
                        case "gesture-timeout":
                                this.setStatusText("");
                                break;
                }
        },
nettrotter
火狐狸
火狐狸
  • UID19393
  • 注册日期2007-06-12
  • 最后登录2014-04-26
  • 发帖数149
  • 经验13枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
2楼#
发布于:2008-11-21 18:41
游客

返回顶部