论坛's Archiver

jojo115 发表于 2008-2-24 23:44

<a href="http://forums.mozine.cn/index.php?act=attach&amp;type=post&amp;id=10882" target="_blank">custombuttons<sup>2</sup></a> 大家都不陌生,但讨论甚少,这里开个集中贴把自己收集的按钮在此分享,大家也可在这分享自己按钮!<br /><br /><a href="http://songseungheon.ifensi.com/custombuttons.html" target="_blank"><!--sizeo:3--><span style="font-size:12pt;line-height:100%"><!--/sizeo--><b>部分按钮安装页面(请使用FF浏览并点击安装)</b><!--sizec--></span><!--/sizec--></a> <!--coloro:#FF0000--><span style="color:#FF0000"><!--/coloro-->  注意别忘了首先安装  <a href="http://forums.mozine.cn/index.php?act=attach&amp;type=post&amp;id=11192" target="_blank">custombuttons<sup>2</sup></a>  扩展<!--colorc--></span><!--/colorc--><br /><br /><b>安装页面预览,简介就略了,有问题的提!如果没有需要的按钮也可提出,能找到的话会添加进去!</b><br /><a href="http://songseungheon.ifensi.com/custombuttons.html" target="_blank"><img src="http://songseungheon.ifensi.com/custombuttons.PNG" border="0" class="linked-image" /></a>

nettrottist 发表于 2008-2-25 09:04

[url]http://custombuttons2.com/forum/viewforum.php?f=57[/url]
按钮库。

[[i] 本帖最后由 nettrottist 于 2008-9-21 09:55 编辑 [/i]]

我行我速 发表于 2008-2-25 09:40

<!--quoteo(post=115219:date=2008年2月24日 11&#58;44 PM:name=jojo115)--><div class='quotetop'>引用 (jojo115 @ 2008年2月24日 11&#58;44 PM) <a href="index.php?act=findpost&pid=115219"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Goole Search 自己改的,选择文字后左键单击按钮在新标签搜索,右键单击按钮弹出关键字输入窗口,输入确定后新标签搜索<br />Baidu Search  同上,还可以修改为其他搜索引擎。不过这个按钮代码有个致命的问题,就是选择文字左键单击按钮后文字选择不会清除,这样就算在其他标签选择新的文字仍会搜索第一次选中的文字,如果找不到之前选择的文字使其取消会很麻烦!期待哪位能修改解决的!<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />看了你的Google Search代码,写得太繁杂了。<br /><br />你的左键功能:<!--c1--><div class='codetop'>代码</div><div class='codemain'><!--ec1-->var ss = Cc&#91;&#34;@mozilla.org/browser/search-service;1&#34;&#93;.getService&#40;Ci.nsIBrowserSearchService&#41;;<br />ss.currentEngine = ss.getEngineByName&#40;“Google&#34;&#41;;<br />BrowserSearch.loadSearch&#40;getBrowserSelection&#40;&#41;, true&#41;;<!--c2--></div><!--ec2--><br /><br />你的右键功能:<!--c1--><div class='codetop'>代码</div><div class='codemain'><!--ec1-->var ss = Cc&#91;&#34;@mozilla.org/browser/search-service;1&#34;&#93;.getService&#40;Ci.nsIBrowserSearchService&#41;;<br />ss.currentEngine = ss.getEngineByName&#40;“Google&#34;&#41;;<br />BrowserSearch.loadSearch&#40;document.getElementById&#40;&#39;searchbar&#39;&#41;.value, true&#41;;<!--c2--></div><!--ec2-->

jojo115 发表于 2008-2-25 14:17

<!--quoteo(post=115240:date=2008年2月25日 9&#58;40 AM:name=我行我速)--><div class='quotetop'>引用 (我行我速 @ 2008年2月25日 9&#58;40 AM) <a href="index.php?act=findpost&pid=115240"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->看了你的Google Search代码,写得太繁杂了。<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />呵呵,谢谢 我行我速 提供如此简约的代码!<br /><br />自己不懂代码阿,找的现成的稍微改了下执行方式!代码复杂可能是右键弹出输入窗口功能!<br /><br />自己右增加了个中键搜索地址栏内容,三个键都能派上用场了哈!

我行我速 发表于 2008-2-25 20:38

我提交到custombuttons2论坛的3个按钮:<br /><a href="http://custombuttons2.com/forum/viewtopic.php?f=35&amp;t=670&amp;start=0&amp;st=0&amp;sk=t&amp;sd=a" target="_blank">AutoCopy with AutoPaste to the search bar</a><br /><a href="http://custombuttons2.com/forum/viewtopic.php?f=35&amp;t=661&amp;start=0&amp;st=0&amp;sk=t&amp;sd=a" target="_blank">Google Notebook in Splitted Browser or Sidebar</a><br /><a href="http://custombuttons2.com/forum/viewtopic.php?f=35&amp;t=671&amp;start=0&amp;st=0&amp;sk=t&amp;sd=a" target="_blank">Search the current site with Google</a>

nettrottist 发表于 2008-2-25 21:07

Auto context menu on selection 开启后选择文字即自动弹出右键菜单<br /><br />太完美了。这个按钮可以完美替代<a href="http://forums.mozine.cn/index.php?showtopic=17694" target="_blank"><b><u>Quick Context</u></b></a>。

我行我速 发表于 2008-3-2 00:18

<!--quoteo(post=116414:date=2008年3月1日 11&#58;18 PM:name=nettrottist)--><div class='quotetop'>引用 (nettrottist @ 2008年3月1日 11&#58;18 PM) <a href="index.php?act=findpost&pid=116414"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->楼主还有什么其他实用的按钮吗?多多介绍到这个贴子里来。<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />我正在用的一些实用的按钮:<br />1。AutoCopy/AutoPaste<br />2。Search,替代系统的Search按钮和SearchWP的高亮按钮<br />3。Baidu/Google搜索按钮<br />4。Search Site搜索按钮,搜索当前网站,支持按钮搜索、右键搜索和拖放搜索<br />5。Google Notebook/Google Talk侧边栏版<br />6。Close Current Tab/Undo Close Tab

我行我速 发表于 2008-3-2 12:53

<!--quoteo(post=116439:date=2008年3月2日 12&#58;37 AM:name=nettrottist)--><div class='quotetop'>引用 (nettrottist @ 2008年3月2日 12&#58;37 AM) <a href="index.php?act=findpost&pid=116439"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->6。Close Current Tab/Undo Close Tab<br />这个用鼠标手势一划就行了啊。<br /><br />3。Baidu/Google搜索按钮<br />这个也有很简单的替代方案啊。<!--QuoteEnd--></div><!--QuoteEEnd--><br />按钮呢,就是为了方便,一键操作,而且不会误操作,鼠标手势我不用的。搜索框后面放一排搜索按钮,也是为了快速获得搜索结果,省却切换引擎的步骤。

nettrottist 发表于 2008-3-2 13:51

手势很方便的。不知道你为什么对此抱有成见。尤其你的这两个动作很是轻而易举。用Firegestures。关闭当前标签页就是向下划一下,撤消关闭页我編的是下上。就两下……多方便准确。<br /><br />可能跟我搜索的范围比较高有关。显然我不能在搜索框旁边加上一长条的按钮,那样页面的布局很显得局促拥挤。我不喜欢这样的。我用的还是我最喜欢的扩展之一<a href="https://addons.mozilla.org/zh-CN/firefox/addon/5595" target="_blank">Drag &amp; Dropzone Searching</a>.有什么搜索拖动到框里就行,而不是让你界面很难看的按钮。这个拖动才出现的框平时你是看不到的。

金箭 发表于 2008-3-2 14:47

手势与按钮的优劣就不要争执了,各人习惯不同,争不出结果的。还是多交流一些具体问题吧。

我行我速 发表于 2008-3-2 14:54

<!--quoteo(post=116487:date=2008年3月2日 1&#58;51 PM:name=nettrottist)--><div class='quotetop'>引用 (nettrottist @ 2008年3月2日 1&#58;51 PM) <a href="index.php?act=findpost&pid=116487"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->手势很方便的。不知道你为什么对此抱有成见。尤其你的这两个动作很是轻而易举。用Firegestures。关闭当前标签页就是向下划一下,撤消关闭页我編的是下上。就两下……多方便准确。<!--QuoteEnd--></div><!--QuoteEEnd--><br />这只是个人喜好问题。<br /><br /><!--quoteo(post=116487:date=2008年3月2日 1&#58;51 PM:name=nettrottist)--><div class='quotetop'>引用 (nettrottist @ 2008年3月2日 1&#58;51 PM) <a href="index.php?act=findpost&pid=116487"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->可能跟我搜索的范围比较高有关。显然我不能在搜索框旁边加上一长条的按钮,那样页面的布局很显得局促拥挤。我不喜欢这样的。我用的还是我最喜欢的扩展之一<a href="https://addons.mozilla.org/zh-CN/firefox/addon/5595" target="_blank">Drag &amp; Dropzone Searching</a>.有什么搜索拖动到框里就行,而不是让你界面很难看的按钮。这个拖动才出现的框平时你是看不到的。<!--QuoteEnd--></div><!--QuoteEEnd--><br />谁也不会把所有搜索引擎都做成按钮放到工具栏上阿!按钮有按钮的好处,Drag Searching有Drag Searching的好处。况且Drag Searching与其它Drag类扩展不能同时使用。我倒是希望Drag Searching扩展能够增加功能,每个框内的动作可以自定义,把Drag&amp;Go代替掉。

nettrottist 发表于 2008-3-2 15:03

会有所冲突……所以我向作者问了开关drag dropzone searching 的动作代码。然后我又为此编了个快捷方式。平时一直保留着drag dropzone searching开启状态,因为对于我来说也对于大多人来说是用搜索的情况比较多。如果要用easy dragandgo 或者drag de go的时候,用你自编的快捷方式先关闭一下drag searching.<br /><br /><!--c1--><div class='codetop'>代码</div><div class='codemain'><!--ec1-->DenDZones_ToggleDenD&#40;&#41;;<!--c2--></div><!--ec2-->

我行我速 发表于 2008-3-11 21:42

推荐<a href="http://custombuttons2.com/forum/viewtopic.php?f=35&amp;t=523" target="_blank">Toggle Chrome</a>按钮,可隐藏Firefox的标题栏。

nettrottist 发表于 2008-3-11 21:53

<!--quoteo(post=117755:date=2008年3月11日 9&#58;42 PM:name=我行我速)--><div class='quotetop'>引用 (我行我速 @ 2008年3月11日 9&#58;42 PM) <a href="index.php?act=findpost&pid=117755"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->推荐<a href="http://custombuttons2.com/forum/viewtopic.php?f=35&amp;t=523" target="_blank">Toggle Chrome</a>按钮,可隐藏Firefox的标题栏。<!--QuoteEnd--></div><!--QuoteEEnd--><br />非常强。那这个按钮执行命令是什么?有的话提供出来可以编快捷方式。

我行我速 发表于 2008-3-12 09:34

<!--quoteo(post=117758:date=2008年3月11日 9&#58;53 PM:name=nettrottist)--><div class='quotetop'>引用 (nettrottist @ 2008年3月11日 9&#58;53 PM) <a href="index.php?act=findpost&pid=117758"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><!--quoteo(post=117755:date=2008年3月11日 9&#58;42 PM:name=我行我速)--><div class='quotetop'>引用 (我行我速 @ 2008年3月11日 9&#58;42 PM) <a href="index.php?act=findpost&pid=117755"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->推荐<a href="http://custombuttons2.com/forum/viewtopic.php?f=35&amp;t=523" target="_blank">Toggle Chrome</a>按钮,可隐藏Firefox的标题栏。<!--QuoteEnd--></div><!--QuoteEEnd--><br />非常强。那这个按钮执行命令是什么?有的话提供出来可以编快捷方式。<br /><!--QuoteEnd--></div><!--QuoteEEnd--><br />完整的代码如下,精简了似乎效果不好。<br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function hideChrome() {<br />  if (navigator.platform == &quot;Win32&quot;) {<br />    window.moveTo(0,0);<br />    window.maximize();<br />    document.getElementById(&quot;main-window&quot;).setAttribute(&#39;hidechrome&#39;,&#39;true&#39;);<br />    // preserve small area for taskbar to appear<br />    window.resizeTo(screen.availWidth, screen.availHeight-2);<br />  } else {<br />    document.getElementById(&quot;main-window&quot;).setAttribute(&#39;hidechrome&#39;,&#39;true&#39;);<br />    window.moveTo(0,0);<br />    window.resizeTo(screen.availWidth, screen.availHeight);<br />    window.maximize();<br />  }<br />}<br /><br />function showChrome() {<br />  if (navigator.platform == &quot;Win32&quot;) {<br />    document.getElementById(&quot;main-window&quot;).setAttribute(&#39;hidechrome&#39;,&#39;false&#39;);<br />    window.resizeTo(screen.availWidth, screen.availHeight);<br />    window.maximize();<br />    window.resizeTo(screen.availWidth, screen.availHeight);<br />  } else {     <br />    document.getElementById(&quot;main-window&quot;).setAttribute(&#39;hidechrome&#39;,&#39;false&#39;);<br />    window.maximize();<br />    window.maximize();<br />  }<br />}<br /><br />function toggleChrome() {<br />  var mainWindow = document.getElementById(&quot;main-window&quot;);<br />  var isFullScreen = mainWindow.getAttribute(&#39;hidechrome&#39;);<br />                <br />  if (isFullScreen == &quot;&quot; || isFullScreen == &#39;false&#39;) {<br />    hideChrome();<br />  } else {<br />    showChrome();<br />  }<br />}<br /><br />toggleChrome();</div>

nettrottist 发表于 2008-3-12 10:01

这个完整版的刚试了,效果满意。谢谢哈。<br /><br />并且有了上面这个代码以后,连按钮都不需要多余下载了。很完美。

jojo115 发表于 2008-3-12 14:41

谢谢提供完整版,精简版好像撑不满整个屏幕!这下autohide就可以省了!<br /><br />虽然节省空间,但是总觉得没有标题栏怪怪的,自己用工具栏加按钮来替代了标题栏!

nettrottist 发表于 2008-3-12 16:26

<!--quoteo(post=117881:date=2008年3月12日 2&#58;41 PM:name=jojo115)--><div class='quotetop'>引用 (jojo115 @ 2008年3月12日 2&#58;41 PM) <a href="index.php?act=findpost&pid=117881"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->虽然节省空间,但是总觉得没有标题栏怪怪的,自己用工具栏加按钮来替代了标题栏!<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />什么意思,是不是指原标题栏第一行现在,你设成了工具栏加按钮?

jojo115 发表于 2008-3-12 18:32

<!--quoteo(post=117906:date=2008年3月12日 4&#58;26 PM:name=nettrottist)--><div class='quotetop'>引用 (nettrottist @ 2008年3月12日 4&#58;26 PM) <a href="index.php?act=findpost&pid=117906"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec--><!--quoteo(post=117881:date=2008年3月12日 2&#58;41 PM:name=jojo115)--><div class='quotetop'>引用 (jojo115 @ 2008年3月12日 2&#58;41 PM) <a href="index.php?act=findpost&pid=117881"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->虽然节省空间,但是总觉得没有标题栏怪怪的,自己用工具栏加按钮来替代了标题栏!<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />什么意思,是不是指原标题栏第一行现在,你设成了工具栏加按钮?<br /><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />呵呵,是的!用按钮做了最小化和关闭!不过按钮图标不能撑满按钮更不用说整个工具栏了,不是很美观,不知道能不能自定义某工具的皮肤背景?

nettrottist 发表于 2008-3-12 18:49

我是非到万不得已,界面不留多余的东西,包括按钮。这个最小化,关闭(到托盘)应该都有快捷方式的。我就不留喽……

我行我速 发表于 2008-3-12 19:02

重新精简了一下,Win32 Only,已达到满意效果。另外还想把右下角的那个Resizable Area隐掉,不知有什么办法。<br /><br />新加一句隐藏了右下角的Resizeable Area。<br />新增自适应Windows任务栏的位置。<br /><br /><div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>function hideChrome() {<br />  document.getElementById(&quot;main-window&quot;).setAttribute(&#39;hidechrome&#39;,&#39;true&#39;);<br />  window.moveTo(screen.availLeft, screen.availTop);<br />  window.resizeTo(screen.availWidth, screen.availHeight);<br />  document.getAnonymousElementByAttribute(document.getElementById(&quot;status-bar&quot;), &quot;class&quot;, &quot;statusbar-resizerpanel&quot;)<br />    .setAttribute(&quot;hidden&quot;, &quot;true&quot;);<br />}<br /><br />function showChrome() {<br />  document.getElementById(&quot;main-window&quot;).removeAttribute(&#39;hidechrome&#39;);<br />  window.maximize();<br />  window.restore();<br />  window.maximize();<br />}<br /><br />function toggleChrome() {<br />  var isFullScreen = document.getElementById(&quot;main-window&quot;).getAttribute(&#39;hidechrome&#39;);<br />  if (isFullScreen) {<br />        showChrome();<br />  } else {<br />        hideChrome();<br />  }<br />}<br /><br />toggleChrome();</div>

jojo115 发表于 2008-3-12 19:06

呵呵~ nettrottist 同学还真是个简约主义者&#33;<br />喜欢用快捷键的人都是高手阿,就像从前玩即时战略游戏一样,怎么也玩不过别人,因为我只会用鼠标!<br /><br />现在的显示屏都很大了,对于我来说空间不是问题,就是希望自己的FF看起来能漂亮和舒服!

我行我速 发表于 2008-3-12 19:09

我的第一排放按钮+天气预报,第二排就是地址栏+搜索栏,第三排放书签和其他一些按钮,还是满当当的嘛。

jojo115 发表于 2008-3-12 19:12

<!--quoteo(post=117927:date=2008年3月12日 7&#58;02 PM:name=我行我速)--><div class='quotetop'>引用 (我行我速 @ 2008年3月12日 7&#58;02 PM) <a href="index.php?act=findpost&pid=117927"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->重新精简了一下,Win32 Only,已达到满意效果。另外还想把右下角的那个Resizable Area隐掉,不知有什么办法。<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />恩,效果不错! 用totaltoolbar 可以把 Resizable Area 隐藏!OSB应该也可以!修改FF的方法没见过!

我行我速 发表于 2008-3-12 20:59

隐藏Resizeable Area的方法已找到,见24楼。

我行我速 发表于 2008-3-14 16:20

Go Bottom按钮:左键到页底(如果在页底则返回页首),右键到页首(如果在页首则返回页底),左键双击到页中。<br />Proxy按钮:取代WJ扩展,可直接打开WJ代理(需事先设置正确的程序路径)并切换代理状态。

tfgdsgyrdsyr 发表于 2008-3-15 19:09

Clear AddressBar/InputField/SearchBar能否实现左键清除搜索栏内容,右键清除地址栏内容<br /><br />常用清除搜索栏内容,不习惯用右键

liuxb 发表于 2008-3-18 10:16

试了一下24楼的脚本,很不错, 多谢, 不过还有两个问题<br /><br />一个就是能不能把去除标题栏的功能固定下来?  现在这样, 每次启动以后还是有标题栏的, 必须要按一下快捷键才行. 能否做到重启以后也没有?<br /><br />还有就是我的任务栏是放在桌面上面的,现在用了脚本以后,Fx地址栏什么的都隐藏到系统任务栏下面了, 自己往下移动总是不能精确, 如果按alt+space, 然后按x的话, 最大化以后就全屏了,把系统任务栏遮住了. 怎么才能让fx自动适应呢?

nettrottist 发表于 2008-3-18 10:27

<!--quoteo(post=118792:date=2008年3月18日 10&#58;16 AM:name=liuxb)--><div class='quotetop'>引用 (liuxb @ 2008年3月18日 10&#58;16 AM) <a href="index.php?act=findpost&pid=118792"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->试了一下24楼的脚本,很不错, 多谢, 不过还有两个问题<br />一个就是能不能把去除标题栏的功能固定下来?  现在这样, 每次启动以后还是有标题栏的, 必须要按一下快捷键才行. 能否做到重启以后也没有?<!--QuoteEnd--></div><!--QuoteEEnd--><br /><br />好像暂时没有办法,我这里也是启动后再用个快捷键的达到隐藏标题栏。另一种方法用custom button按钮的到是默认进入浏览器就是没有标题栏的。:)<br /><br /><!--quoteo--><div class='quotetop'>引用 </div><div class='quotemain'><!--quotec-->还有就是我的任务栏是放在桌面上面的,现在用了脚本以后,Fx地址栏什么的都隐藏到系统任务栏下面了, 自己往下移动总是不能精确, 如果按alt+space, 然后按x的话, 最大化以后就全屏了,把系统任务栏遮住了. 怎么才能让fx自动适应呢?<!--QuoteEnd--></div><!--QuoteEEnd--><br />我是放在下面的。呵呵,我不会写脚本啊。还是等高人出手吧。

我行我速 发表于 2008-3-18 13:04

<!--quoteo(post=118792:date=2008年3月18日 10&#58;16 AM:name=liuxb)--><div class='quotetop'>引用 (liuxb @ 2008年3月18日 10&#58;16 AM) <a href="index.php?act=findpost&pid=118792"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->一个就是能不能把去除标题栏的功能固定下来?  现在这样, 每次启动以后还是有标题栏的, 必须要按一下快捷键才行. 能否做到重启以后也没有?<!--QuoteEnd--></div><!--QuoteEEnd--><br />用CB2按钮。<br /><br /><!--quoteo--><div class='quotetop'>引用 </div><div class='quotemain'><!--quotec-->还有就是我的任务栏是放在桌面上面的,现在用了脚本以后,Fx地址栏什么的都隐藏到系统任务栏下面了, 自己往下移动总是不能精确, 如果按alt+space, 然后按x的话, 最大化以后就全屏了,把系统任务栏遮住了. 怎么才能让fx自动适应呢?<!--QuoteEnd--></div><!--QuoteEEnd--><br />已修改了一下moveTo的位置,见24楼。之前没意识到这个问题呢。

页: [1] 2 3

© 2004-2009 Mozest.com