Moresam
小狐狸
小狐狸
  • UID26614
  • 注册日期2008-10-10
  • 最后登录2012-01-07
  • 发帖数89
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:6028回复:17

Stylish 1.1b3 状态栏图标没了,如何找回来?

楼主#
更多 发布于:2011-01-05 22:52
RT,今天更新了Stylish 1.1b3,发现状态栏图标没了,非常不方便,不知道如何找回来?
Moresam
小狐狸
小狐狸
  • UID26614
  • 注册日期2008-10-10
  • 最后登录2012-01-07
  • 发帖数89
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2011-01-05 22:52
Version 1.1b3

    -Style updates through Firefox 4's add-ons window
    -Stylish icon not hard-coded into the status bar on Firefox 4.
Moresam
小狐狸
小狐狸
  • UID26614
  • 注册日期2008-10-10
  • 最后登录2012-01-07
  • 发帖数89
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
2楼#
发布于:2011-01-05 22:52
cinhoo:自己改了一下StatusbarInURLBar3.uc.js
// ==UserScript==
// @name           StatusbarInURLBar3.uc.js
// @namespace      http://d.hatena.ne.jp/Griever/
// @include        main
// @compatibility  Firefox 4.0b7
// @note           Firefox 3.6, 4.0b6 はこちら https://gist.github.com/67460/d87a8f38280d26f1ccb81fcbb1c3b6a1fcb07e90
// ==/UserScript==

(function(){
	if (!isElementVisible(gURLBar)) return;//アドレスバーが無かったらストップ
	var urlbarIcons = document.getElementById('urlbar-icons');
	var statusBar = document.getElementById('status-bar');
	//add stylish icon
	var stylishPanel = document.getElementById('stylish-toolbar-button');
	if(stylishPanel){
		stylishPanel.setAttribute("id","stylish-panel");
		stylishPanel.onclick = function(event){
			stylishOverlay.handleStatusClick(event);
		};
		statusBar.appendChild(stylishPanel);
	}
	
	statusBar.setAttribute("context", "");//ツールバーのコンテキストメニューがでないように
	urlbarIcons.insertBefore(statusBar, urlbarIcons.firstChild);

	var style = <![CDATA[
#status-bar {
  min-height: 18px !important;
  margin: 0px !important;
  border: none !important;
  background-color: transparent !important;
}
/* Remove stylish button shape and place in the location bar */
#stylish-panel {
  -moz-appearance: none !important;
  border: 0 !important;
  background: white !important;
  box-shadow: white 0 0 !important;
  padding: 2px 4px !important;
  margin: -2px !important;
  position: fixed !important;
}

#stylish-panel > dropmarker{
  display: none !important;
}
/*
.urlbar-textbox-container-children {
  opacity: 1 !important;
  -moz-transition: none !important;
}

.urlbar-origin-label {
  display: none !important;
}

.urlbar-over-link-box {
  background-image: none !important;
  padding-left: 4px !important;
}
*/

	]]>.toString();
	var sspi = document.createProcessingInstruction(
		'xml-stylesheet',
		'type="text/css" href="data:text/css,' + encodeURI(style) + '"'
	);
	document.insertBefore(sspi, document.documentElement);
	sspi.getAttribute = function(name) {
		return document.documentElement.getAttribute(name);
	};
})()
回到原帖


非常感谢,不过我用的是 ChromeStatusbarModoki.uc.js,它可以在左下角显示当前页面的加载状态,非常有用。
https://gist.github.com/300255
您能帮忙改一下吗?
Moresam
小狐狸
小狐狸
  • UID26614
  • 注册日期2008-10-10
  • 最后登录2012-01-07
  • 发帖数89
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
3楼#
发布于:2011-01-05 22:52
cinhoo:这脚本不错,只是空白页和加载时收藏五角星会消失回到原帖

非常感谢,这样就好多了。
Moresam
小狐狸
小狐狸
  • UID26614
  • 注册日期2008-10-10
  • 最后登录2012-01-07
  • 发帖数89
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
4楼#
发布于:2011-01-05 22:52
Backdoor:前几天,发布1.1b4的时候看到作者发的一个帖子,意思大概是,第一次运行Stylish 的时候状态栏图标是显示的,如果你让他不显示,那这个图标以后就不会出现了
可以试下把extensions.stylish.firstRun Reset一下
不过我的Stylish 图标一直是显示正常,拖动到customize toolbar 里面后,下次启动fx 还是可以把它拖回来,没出现过彻底消失的情况
回到原帖

1.1B4时可以在状态栏显示是个BUG,作者已经马上在1.1B5中修正了,不会再在状态栏里出现图标了。
作者已经彻底抛弃我们了,我们只能自己自食其力了
Moresam
小狐狸
小狐狸
  • UID26614
  • 注册日期2008-10-10
  • 最后登录2012-01-07
  • 发帖数89
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
5楼#
发布于:2011-01-05 22:52
clc4214:哈哈,我也刚想发贴来着

现在解决了,定制,拖出来就好了。。ORZ
回到原帖

拖出来的图标仅仅是工具栏图标属性,不是状态栏图标的属性,很多功能都不一样,而且属性不一样,应用场合也不一样,不能相提而论的
游客

返回顶部