1320楼#
发布于:2016-08-05 17:53
用户被禁言,该主题自动屏蔽! |
|
1321楼#
发布于:2016-08-06 13:52
感谢楼主,被禁用两次了,才想到要更新...
|
|
1322楼#
发布于:2016-08-08 10:30
|
|
1323楼#
发布于:2016-08-08 12:57
|
|
1324楼#
发布于:2016-08-11 01:39
替代方案
Fire Drag 0.1.2 作者: Eric Tsang drag texts and links with/without e10s https://addons.mozilla.org/zh-cn/firefox/addon/fire-drag/?src=userprofile |
|
1325楼#
发布于:2016-08-11 13:53
用户被禁言,该主题自动屏蔽! |
|
1326楼#
发布于:2016-08-15 01:00
Hey,
I love Easy DragToGo and use it every day and miss it whenever I have to work with another browser. There's just one thing I miss with it and that's a way to disable it on certain pages or domains. Would it be possible for you to add something like a blacklist? Or is there a command I can use with a hotkey (with keyconfig) to temporarily disable or toggle the add-on? |
|
1327楼#
发布于:2016-08-15 09:07
用户被禁言,该主题自动屏蔽! |
|
1328楼#
发布于:2016-08-15 10:53
Hopling:Hey,Wow... maybe your mother tongue isnt english? :D I had installed and tested the addon, sadly... it dont be disabled by hotkey, and cant add it to blacklist on a website, because it haven't the functions, author last updated at 21/12/2015. so... u know mean... |
|
1329楼#
发布于:2016-08-17 18:09
mmd://拖拽紫云飞这个解决方案不错,至少50a2下还能用 稍微改了下,新增了一个类似ETG的超时的小功能 拖拽操作的脚本是我自己的配置,有需要可自取 // ==UserScript== // @id DragToGo // @version 0.1 // @namespace DragToGo@ziyunfei // @author ziyunfei // @modifier Byzod // @description DragToGo // ==/UserScript== if(location == "chrome://browser/content/browser.xul"){ (function(event) { var self = arguments.callee; // Drag timeout, ms self.DRAG_TIMEOUT = 300; // Used for timeout self.dragTimeoutStart = function(){ window.clearTimeout(self._Timer); self.readyForDrop = true; self._Timer = window.setTimeout(()=>{ self.readyForDrop = false; // console.log("DragToGo: timeout(" + self._Timer + ") timeouted.");// DEBUG // console.log("DragToGo: timeout event, readyForDrop: " + self.readyForDrop);// DEBUG }, self.DRAG_TIMEOUT); // console.log("DragToGo: timeout(" + self._Timer + ") started.");// DEBUG } if (!event) { ["dragstart", "dragover", "drop"].forEach(function(type) { gBrowser.mPanelContainer.addEventListener(type, self, false); }); window.addEventListener("unload", function() { ["dragstart", "dragover", "drop"].forEach(function(type) { gBrowser.mPanelContainer.removeEventListener(type, self, false); }); }, false); return; } switch (event.type) { case "dragstart": { self.startPoint = [event.screenX, event.screenY]; self.sourceNode = event.target; if(event.target.localName == "img"){ event.dataTransfer.setData("application/x-moz-file-promise-url", event.target.src); } self.dragTimeoutStart(); break; } case "dragover": { if(self.startPoint && self.readyForDrop) { Components.classes["@mozilla.org/widget/dragservice;1"] .getService(Components.interfaces.nsIDragService) .getCurrentSession().canDrop = true; } // Timeout check // console.log("DragToGo: Dragover event, readyForDrop: " + self.readyForDrop);// DEBUG break; } case "drop": { // Timeout check // console.log("DragToGo: Drop event, readyForDrop: " + self.readyForDrop);// DEBUG window.clearTimeout(self._Timer); if(!self.readyForDrop){ // Quit point return; } self.readyForDrop = true; if (self.startPoint && event.target.localName != "textarea" && (!(event.target.localName == "input" && (event.target.type == "text" || event.target.type == "password"))) && event.target.contentEditable != "true") { event.preventDefault(); event.stopPropagation(); var [subX, subY] = [event.screenX - self.startPoint[0], event.screenY - self.startPoint[1]]; var [distX, distY] = [(subX > 0 ? subX : (-subX)), (subY > 0 ? subY : (-subY))]; var direction; if (distX > distY) direction = subX < 0 ? "L" : "R"; else direction = subY < 0 ? "U" : "D"; var aReferrerURI = gBrowser.currentURI; if (event.dataTransfer.types.contains("application/x-moz-file-promise-url")) { if (direction == "U") { //前台搜索相似图片(Google) gBrowser.selectedTab = gBrowser.addTab("https://www.google.com/searchbyimage?image_url=" + encodeURIComponent(event.dataTransfer.getData("application/x-moz-file-promise-url")), aReferrerURI); return; } if (direction == "D") { //保存图片到Q:\\Down //saveImageURL(event.dataTransfer.getData("application/x-moz-file-promise-url"), null, null, null, null, null, document); var aSrc = event.dataTransfer.getData("application/x-moz-file-promise-url"); var fileName = aSrc.substr(aSrc.lastIndexOf('/') + 1); var fileSaving = Components.classes["@mozilla.org/file/local;1"]. createInstance(Components.interfaces.nsILocalFile); fileSaving.initWithPath("Q:\\Down"); fileSaving.append(fileName); var options = { source: aSrc, target: fileSaving, }; Cu.import("resource://gre/modules/Downloads.jsm"); var downloadPromise = Downloads.createDownload(options); downloadPromise.then(function success(d) { d.start(); Notification.requestPermission(()=>{ var n = new Notification(fileName + "已下载"); setTimeout(n.close.bind(n), 1500); }); }); return; } if (direction == "L") { //后台打开图片 gBrowser.addTab(event.dataTransfer.getData("application/x-moz-file-promise-url").split("\n")[0], aReferrerURI); return; } if (direction == "R") { //后台打开图片链接 if (event.dataTransfer.types.contains("text/x-moz-url")){ gBrowser.addTab(event.dataTransfer.getData("text/x-moz-url").split("\n")[0], aReferrerURI); } return; } } else if (event.dataTransfer.types.contains("text/x-moz-url")) { if (direction == "U") { //在当前标签打开链接 loadURI(event.dataTransfer.getData("text/x-moz-url").split("\n")[0]); return; } if (direction == "D") { //链接另存为 var doc = event.target.ownerDocument; var ref = makeURI(doc.location.href, doc.characterSet); saveURL(event.dataTransfer.getData("text/x-moz-url").split("\n")[0], null, null, true, false, ref, doc); return; } if (direction == "L") { //前台打开链接 gBrowser.selectedTab = gBrowser.addTab(event.dataTransfer.getData("text/x-moz-url").split("\n")[0], aReferrerURI); return; } if (direction == "R") { //后台打开链接 gBrowser.addTab(event.dataTransfer.getData("text/x-moz-url").split("\n")[0], aReferrerURI); return; } } else { var searchStr = event.dataTransfer.getData("text/unicode"); var searchStrInSite = "site:" + getTopWin().getBrowser().currentURI.host + " " + searchStr; var Ss = Components.classes["@mozilla.org/browser/search-service;1"].getService(Components.interfaces.nsIBrowserSearchService); var engine = Ss.currentEngine; if (direction == "U") { //搜索并高亮文字 gFindBar.onFindCommand(); setTimeout(()=>{gFindBar.toggleHighlight(false)}, 10); setTimeout(()=>{gFindBar.toggleHighlight(true)}, 20); return; } if (direction == "D") { //复制文字 Components.classes["@mozilla.org/widget/clipboardhelper;1"] .getService(Components.interfaces.nsIClipboardHelper) .copyString(searchStr); return; } if (direction == "L") { //站内前台搜索文字 gBrowser.selectedTab = gBrowser.addTab(engine.getSubmission(searchStrInSite, null).uri.spec, aReferrerURI); return; } if (direction == "R") { //后台搜索文字 gBrowser.addTab(engine.getSubmission(searchStr, null).uri.spec, aReferrerURI); return; } } self.startPoint = 0; } } } })(); } |
|
|
1330楼#
发布于:2016-08-18 17:53
用户被禁言,该主题自动屏蔽! |
|
1331楼#
发布于:2016-08-18 17:56
用户被禁言,该主题自动屏蔽! |
|
1332楼#
发布于:2016-08-20 14:47
不知道能不能兼容window10
|
|
1333楼#
发布于:2016-08-20 17:12
|
|
1334楼#
发布于:2016-08-20 22:35
|
|