阅读:8661回复:12
手动修改标签页的宽度
是 firefox中国论坛的兄弟solarbeam 告诉我的,和大家分享一下
修改一個文件就可以了, 這個文件是你firefox的安裝目錄下的chrome->toolkit.jar 修改其中的文件 content->global->bilding->tabbrowser.xml 打开这个文件搜索250,然后改为你想要的宽度就可以了,比如100 |
|
1楼#
发布于:2004-12-18 20:08
不错,不用仅仅为此安装tb了
|
|
2楼#
发布于:2004-12-18 20:08
个人觉得默认的宽度挺不错的
|
|
|
3楼#
发布于:2004-12-18 20:08
我怎么找不到25o0呢?请问250所对应的参数是什么?
|
|
4楼#
发布于:2004-12-18 20:08
t.maxwidth
和 maxwidth 大家页可以使用Flowing_Tabs_0.4_rep.xpi这个扩展,他定义了标签页的宽度,但没有修改宽度的窗口,当标签页页很多的时候他可以让标签栏变为多行 不过刚才到台湾ff论坛中看到了 tbp lite 1.02版本中估计增加设定宽度的功能 |
|
5楼#
发布于:2004-12-18 20:08
不行……新开的tab还是太宽
|
|
|
6楼#
发布于:2004-12-18 20:08
bigbighill:是 firefox中国论坛的兄弟solarbeam 告诉我的,和大家分享一下 我试了,very good。 好像所有关于TabBrowser 的都可以在这改,只是不知道里面变量和函数的含义。 其中的这个method可能是关于新增tab的,如果知道某些变量的含义就可以修改,使新开tab开在当前的右边一个而不是最右。 如有谁知道请提示。 <method name="addTab"> <parameter name="aURI"/> <parameter name="aReferrerURI"/> <parameter name="aCharset"/> <parameter name="aPostData"/> <body> <![CDATA[ var blank = (aURI == "about:blank"); if (!this.mTabbedMode) this.enterTabbedMode(); var b = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "browser"); var t = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "tab"); if (blank) t.setAttribute("label", this.mStringBundle.getString("tabs.untitled")); else t.setAttribute("label", aURI); t.setAttribute("crop", "end"); t.maxWidth = 128; t.minWidth = 32; t.width = 0; t.setAttribute("flex", "100"); t.setAttribute("validate", "never"); t.setAttribute("onerror", "this.parentNode.parentNode.parentNode.parentNode.addToMissedIconCache(this.getAttribute('image')); this.removeAttribute('image');"); this.mTabContainer.appendChild(t); b.setAttribute("type", "content"); b.setAttribute("message", "true"); b.setAttribute("contextmenu", this.getAttribute("contentcontextmenu")); b.setAttribute("tooltip", this.getAttribute("contenttooltip")); b.setAttribute("autocompletepopup", this.getAttribute("autocompletepopup")); // Add the Message and the Browser to the box var vbox = document.createElementNS("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "vbox"); vbox.setAttribute("flex", "1"); vbox.appendChild(this._createMessage("top")); vbox.appendChild(b); vbox.appendChild(this._createMessage("bottom")); b.setAttribute("flex", "1"); this.mPanelContainer.appendChild(vbox); b.addEventListener("DOMTitleChanged", this.onTitleChanged, false); if (this.mStrip.collapsed) this.setStripVisibilityTo(true); this.mPrefs.setBoolPref("browser.tabs.forceHide", false); // wire up a progress listener for the new browser object. var position = this.mTabContainer.childNodes.length-1; var tabListener = this.mTabProgressListener(t, b, blank); const filter = Components.classes["@mozilla.org/appshell/component/browser-status-filter;1"] .createInstance(Components.interfaces.nsIWebProgress); filter.addProgressListener(tabListener, Components.interfaces.nsIWebProgress.NOTIFY_ALL); b.webProgress.addProgressListener(filter, Components.interfaces.nsIWebProgress.NOTIFY_ALL); this.mTabListeners[position] = tabListener; this.mTabFilters[position] = filter; b._fastFind = this.fastFind; if (!blank) { // pretend the user typed this so it'll be available till // the document successfully loads b.userTypedValue = aURI; if (aPostData === undefined) aPostData = null; b.loadURIWithFlags(aURI, nsIWebNavigation.LOAD_FLAGS_NONE, aReferrerURI, aPostData, null); } return t; ]]> </body> </method> ![]() ![]() |
|
7楼#
发布于:2004-12-18 20:08
jar用什么软件打开的?
|
|
8楼#
发布于:2004-12-18 20:08
OK!爽多了,
jar用什么软件打开的? 哈哈。。用flashget就可以呀,XML用DW打开,改了就可以了。我试了,可以的。。 |
|
9楼#
发布于:2004-12-18 20:08
|
|
10楼#
发布于:2004-12-18 20:08
打开之后用什么软件压回去?
|
|
11楼#
发布于:2004-12-18 20:08
我是在RAR中直接打开,改了保存后RAR就会问你文件已改动,是否放回压缩包,你选是,他自己就包好了。
|
|
|
12楼#
发布于:2004-12-18 20:08
标签页多行显示,能不能改出来?
|
|