阅读:3083回复:2
【已解决】修改Firegestures“复制鼠标划过的链接地址”
Firegestures中有个按键手势,按住shift或者ctrl键,鼠标划到的链接地址能被全部复制到粘贴板里面,非常方便于批量转移帖子的链接。
现在想问问,有没有人能够把这个功能里的复制链接地址改变成以url text 形式,同时复制链接文字和地址?? |
|
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; } }, |
|
2楼#
发布于:2008-11-21 18:41
|
|