阅读:7242回复:15
firefox有没有在当前页复制地址的扩展或者脚本啊?
就像opera一样,菜单栏有一个"copy address"的选项
一点就复制了,或者快捷键 这样就不用每次复制网址的时鼠标移到地址栏去,很麻烦... |
|
1楼#
发布于:2008-07-28 02:41
如果是跟朋友分享的话,直接把标签拖到MSN,或者QQ或者别的什么地方的文本框就可以了。
下面是我把当前页面的地址给拖过来了。https://www.firefox.net.cn/forum/viewtopic.php?p=182024#182024 |
|
2楼#
发布于:2008-07-28 02:41
哇,这才发现还可以这样,猛
不过有了更好,呵呵 |
|
3楼#
发布于:2008-07-28 02:41
Copy url扩展,很不错的,我用的蓝色下划线就是用它实现的。
Copy URL + :: Firefox Add-ons |
|
|
4楼#
发布于:2008-07-28 02:41
uc.js
/** * A user script for userChrome.js extension. * @name Copy Title + URL * @description Add 'Copy Title + URL' and 'Copy Title + URL (HTML)' commands * to the context menu of browser tab. * @compatibility Firefox 2.0 * @author Gomita * @lastUupdated 2007.01.12 * @permalink http://www.xuldev.org/blog/?p=51 */ (function() { window.ucjs_copyTabInfo = function(aAsHTML) { function htmlEscape(s) { s = s.replace(/&/g, "&"); s = s.replace(/>/g, ">"); s = s.replace(/</g, "<"); s = s.replace(/"/g, """); return s; } var tab = document.popupNode; var url = gBrowser.getBrowserForTab(tab).contentWindow.location.href; var txt = aAsHTML ? '<a href="' + htmlEscape(url) + '">' + htmlEscape(tab.label) + '</a>' : tab.label + "\n" + url; var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"] .getService(Components.interfaces.nsIClipboardHelper); clipboard.copyString(txt); }; var menuitem1 = document.createElement("menuitem"); menuitem1.setAttribute("label", "Copy Title + URL"); menuitem1.setAttribute("oncommand", "ucjs_copyTabInfo(false);"); var menuitem2 = document.createElement("menuitem"); menuitem2.setAttribute("label", "Copy Title + URL (HTML)"); menuitem2.setAttribute("oncommand", "ucjs_copyTabInfo(true);"); setTimeout(function() { gBrowser.mStrip.childNodes[1].appendChild(document.createElement("menuseparator")); gBrowser.mStrip.childNodes[1].appendChild(menuitem1); gBrowser.mStrip.childNodes[1].appendChild(menuitem2); }, 0); })(); |
|
|
5楼#
发布于:2008-07-28 02:41
一直用FIREGESTURES的脚本
一直用FIREGESTURES的脚本
Copy Page Title and URL to Clipboard http://www.xuldev.org/firegestures/getscripts.php |
|
|
6楼#
发布于:2008-07-28 02:41
smoke:uc.js/** * A user script for userChrome.js extension. * @name Copy Title + URL * @description Add 'Copy Title + URL' and 'Copy Title + URL (HTML)' commands * to the context menu of browser tab. * @compatibility Firefox 2.0 * @author Gomita * @lastUupdated 2007.01.12 * @permalink http://www.xuldev.org/blog/?p=51 */ (function() { window.ucjs_copyTabInfo = function(aAsHTML) { function htmlEscape(s) { s = s.replace(/&/g, "&"); s = s.replace(/>/g, ">"); s = s.replace(/</g, "<"); s = s.replace(/"/g, """); return s; } var tab = document.popupNode; var url = gBrowser.getBrowserForTab(tab).contentWindow.location.href; var txt = aAsHTML ? '<a href="' + htmlEscape(url) + '">' + htmlEscape(tab.label) + '</a>' : tab.label + "\n" + url; var clipboard = Components.classes["@mozilla.org/widget/clipboardhelper;1"] .getService(Components.interfaces.nsIClipboardHelper); clipboard.copyString(txt); }; var menuitem1 = document.createElement("menuitem"); menuitem1.setAttribute("label", "Copy Title + URL"); menuitem1.setAttribute("oncommand", "ucjs_copyTabInfo(false);"); var menuitem2 = document.createElement("menuitem"); menuitem2.setAttribute("label", "Copy Title + URL (HTML)"); menuitem2.setAttribute("oncommand", "ucjs_copyTabInfo(true);"); setTimeout(function() { gBrowser.mStrip.childNodes[1].appendChild(document.createElement("menuseparator")); gBrowser.mStrip.childNodes[1].appendChild(menuitem1); gBrowser.mStrip.childNodes[1].appendChild(menuitem2); }, 0); })();回到原帖 加到猴子了,还是没这个菜单啊 |
|
7楼#
发布于:2008-07-28 02:41
|
|
8楼#
发布于:2008-07-28 02:41
Re: 一直用FIREGESTURES的脚本
tazzy:一直用FIREGESTURES的脚本 不行啊,是添加这个到stylish吗 const AS_HTML = false; function htmlEscape(s) { s = s.replace(/&/g, "&"); s = s.replace(/>/g, ">"); s = s.replace(/</g, "<"); s = s.replace(/"/g, """); return s; } var url = window.content.location.href; var title = window.content.document.title; var txt = AS_HTML ? '<a href="' + htmlEscape(url) + '">' + htmlEscape(title) + '</a>' : title + "\n" + url; var clipboard = Cc["@mozilla.org/widget/clipboardhelper;1"] .getService(Ci.nsIClipboardHelper); clipboard.copyString(txt); |
|
9楼#
发布于:2008-07-28 02:41
|
|
|
10楼#
发布于:2008-07-28 02:41
shone: for Firefox 3.0.1 at http://www.utm.edu/staff/bmoseley/copyu ... v1.3.4.xpi reviewed by bob moseley |
|
11楼#
发布于:2008-07-28 02:41
Re: 一直用FIREGESTURES的脚本
shone:FIREGESTURES是扩展,鼠标手势的,能添加脚本。 ![]() |
|
|
12楼#
发布于:2008-07-28 02:41
bigflybird: 谢谢...OK了....不过能只复制地址吗 ![]() |
|
13楼#
发布于:2008-07-28 02:41
Re: 一直用FIREGESTURES的脚本
shone: 这是鼠标手势脚本 复制标题和链接 examples FIREGESTURES :: Get Scripts http://www.xuldev.org/firegestures/getscripts.php 讨论区 :: Mozilla Firefox中文社区 https://www.firefox.net.cn/forum/index.php Firefox 交流 - 浏览论坛 :: Mozilla Firefox中文社区 https://www.firefox.net.cn/forum/viewforum.php?f=4 找到这个Copy Page Title and URL to Clipboard把它直接拖到firegestures的设置对话框里就可以了 自己再加个手势就可以了 |
|
|
14楼#
发布于:2008-07-28 02:41
<a href="https://www.firefox.net.cn/forum/viewtopic.php?t=23271&highlight=uc.js">firefox有没有在当前页复制地址的扩展或者脚本啊? - 阅读主题 :: Mozilla Firefox中文社区</a>
好像不行啊 |
|
|
上一页
下一页