dindog
千年狐狸
千年狐狸
  • UID30818
  • 注册日期2009-10-24
  • 最后登录2023-02-03
  • 发帖数1195
  • 经验59枚
  • 威望0点
  • 贡献值26点
  • 好评度10点
阅读:7634回复:20

状态栏。。。去了又来,最新方向chrome那样

楼主#
更多 发布于:2011-01-25 11:10
其实觉得他们怎么改一直都比不上Griever的脚本好看、方便实用。

看这次结果怎样。

Bug 603777 – Show loading state in right side of location bar (à la link hover preview)
https://bugzilla.mozilla.org/show_bug.cgi?id=603777#c32

Based on feedback from the Mozilla module owner and others, we may be switching
the spec to use a Chrome-like transient window that appears over content at the
bottom left. I'll be working on that today, and may end up marking this bug a
"Future"
以前firefox跳个票的时间现在可以发布几个正式版了-_-
msky
千年狐狸
千年狐狸
  • UID14649
  • 注册日期2006-09-21
  • 最后登录2023-04-03
  • 发帖数2959
  • 经验166枚
  • 威望0点
  • 贡献值12点
  • 好评度9点
  • 社区居民
1楼#
发布于:2011-01-25 11:10
等着折腾完了的结果:)
just4fun
千年狐狸
千年狐狸
  • UID30408
  • 注册日期2009-09-17
  • 最后登录2016-04-28
  • 发帖数1497
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度2点
2楼#
发布于:2011-01-25 11:10
“Griever的脚本”在哪?
细细粒
火狐狸
火狐狸
  • UID33240
  • 注册日期2010-07-01
  • 最后登录2022-08-12
  • 发帖数161
  • 经验135枚
  • 威望0点
  • 贡献值22点
  • 好评度4点
  • 社区居民
  • 忠实会员
3楼#
发布于:2011-01-25 11:10
啥样子的说?
romantickoala
小狐狸
小狐狸
  • UID31910
  • 注册日期2010-02-01
  • 最后登录2013-08-23
  • 发帖数36
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
4楼#
发布于:2011-01-25 11:10
just4fun:“Griever的脚本”在哪?回到原帖


樓主說的是這個腳本吧,堪稱完美。

https://gist.github.com/300255/7f6a457a ... 24a4249c6c
tulip17
千年狐狸
千年狐狸
  • UID34021
  • 注册日期2010-09-17
  • 最后登录2024-04-17
  • 发帖数980
  • 经验678枚
  • 威望1点
  • 贡献值420点
  • 好评度51点
  • 社区居民
  • 忠实会员
5楼#
发布于:2011-01-25 11:10
romantickoala

樓主說的是這個腳本吧,堪稱完美。

https://gist.github.com/300255/7f6a457a ... 24a4249c6c
回到原帖


还是喜欢有状态栏,连接状况、链接一目了然,这个脚本很好啊,谢谢!
tulip17
千年狐狸
千年狐狸
  • UID34021
  • 注册日期2010-09-17
  • 最后登录2024-04-17
  • 发帖数980
  • 经验678枚
  • 威望1点
  • 贡献值420点
  • 好评度51点
  • 社区居民
  • 忠实会员
6楼#
发布于:2011-01-25 11:10
romantickoala

樓主說的是這個腳本吧,堪稱完美。

https://gist.github.com/300255/7f6a457a ... 24a4249c6c
回到原帖


请教一下这个脚本里哪个是链接阴影的参数,我想去掉阴影,或者改一下阴影颜色,谢谢!
jiahuiqu
火狐狸
火狐狸
  • UID32722
  • 注册日期2010-05-03
  • 最后登录2012-10-09
  • 发帖数218
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
7楼#
发布于:2011-01-25 11:10
tulip17

请教一下这个脚本里哪个是链接阴影的参数,我想去掉阴影,或者改一下阴影颜色,谢谢!
回到原帖



background-color: #D2E1F6 !important;
xf_mao
狐狸大王
狐狸大王
  • UID31861
  • 注册日期2010-01-29
  • 最后登录2017-09-18
  • 发帖数357
  • 经验19枚
  • 威望0点
  • 贡献值4点
  • 好评度1点
  • 社区居民
8楼#
发布于:2011-01-25 11:10
这个脚本能不能不把扩展的图标放到地址栏里面去?
since 2005
jiahuiqu
火狐狸
火狐狸
  • UID32722
  • 注册日期2010-05-03
  • 最后登录2012-10-09
  • 发帖数218
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
9楼#
发布于:2011-01-25 11:10
xf_mao:这个脚本能不能不把扩展的图标放到地址栏里面去?回到原帖






(function(css) {
if (!$('addon-bar')) return;

if (window.chromeStatusbar) {
css = '';
chromeStatusbar.destory();
} else {

if (!XULBrowserWindow.setOverLink_org) {
XULBrowserWindow.setOverLink_org = XULBrowserWindow.setOverLink;
eval("XULBrowserWindow.setOverLink = " + XULBrowserWindow.setOverLink_org.toString().replace(
'gURLBar.setOverLink(link);',
'$&window.chromeStatusbar.overLink = link;' +
'window.chromeStatusbar.updateStatusField("link");'
));
}

XULBrowserWindow._status = '';
XULBrowserWindow.__defineSetter__('status', function(status) {
window.chromeStatusbar.status = status;
window.chromeStatusbar.updateStatusField("status");
return this._status = status;
});
XULBrowserWindow.__defineGetter__('status', function() {
return this._status;
});

if (window.FireGestures) {
FireGestures.setStatusText = function(str) {
window.chromeStatusbar.type = null;
window.chromeStatusbar.show(str);
}
FireGestures.clearStatusText = function(aMillisec) {
window.chromeStatusbar.hide(aMillisec);
}
}

}

var ns = window.chromeStatusbar = {
duration: 250,
delay   : 2000,

_timeout: null,
get timeout() ns._timeout,
set timeout(timer) {
if (ns._timeout) clearTimeout(ns._timeout);
return ns._timeout = timer;
},

_resizeTimer: null,
get resizeTimer() ns._resizeTimer,
set resizeTimer(timer) {
if (ns._resizeTimer) clearTimeout(ns._resizeTimer);
return ns._resizeTimer = timer;
},

overLink: '',
status: '',
statusText: '',

updateStatusField: function(type) {
var text = ns.overLink || ns.status;
ns.type = type;
ns.show(text);
ns.statusText = text;
},

init: function() {
if (css)
addStyle(css);

ns.hbox = document.documentElement.appendChild(document.createElement('hbox'));
ns.hbox.id = 'chrome-status';
ns.hbox.setAttribute('onmouseover', 'chromeStatusbar.onMouseover(event);');
ns.hbox.hidden = true;
ns.display = ns.hbox.appendChild(document.createElement('label'));
ns.display.id = 'chrome-status-label';
//ns.display.setAttribute('crop', 'center');
ns.display.__defineGetter__('label', function(){
return this.getAttribute('value');
});
ns.display.__defineSetter__('label', function(str){
ns.type = 'ex';
ns.show(str);
return str;
});

if (window.FireGestures) {
window.FireGestures._statusTextField = ns.display;
}
if (!XULBrowserWindow.statusTextField) {
XULBrowserWindow.statusTextField = ns.display;
}

ns.hs = ns.hbox.style;
ns.hs.opacity = 0;
ns.hs.MozTransition = 'opacity ' + ns.duration + 'ms ease-out';
addEventListener('resize', ns.onResize, false);
addEventListener('unload', ns.uninit, false);
},

uninit: function() {
ns.timeout = null;
ns.resizeTimer = null;
removeEventListener('resize', ns.onResize, false);
removeEventListener('unload', ns.uninit, false);
},

destory: function() {
ns.uninit();
if (XULBrowserWindow.statusTextField === ns.display)
XULBrowserWindow.statusTextField = null;
ns.hbox.parentNode.removeChild(ns.hbox);
},

onResize: function(event) {
ns.resizeTimer = setTimeout(function(){
ns.resetStyle();
}, 250);
},

onMouseover: function(event) {
ns.display.classList.contains('right')?
ns.display.classList.remove('right'):
ns.display.classList.add('right');
ns.right = !ns.right;
ns.resetStyle();
},

resetStyle: function(){
let contentRect = gBrowser.mPanelContainer.boxObject;
if (true === ns.display.classList.contains('right')) {
let w = Math.min(contentRect.width * 0.9, 400);
ns.hs.maxWidth = w + 'px';
ns.hs.minWidth = w + 'px';
ns.hs.left = contentRect.x + contentRect.width - w + 'px';
} else {
let w = contentRect.width * 0.9;
ns.hs.maxWidth = w + 'px';
ns.hs.minWidth = Math.min(w, 400) + 'px';
ns.hs.left = contentRect.x + 'px';
}
if (false === ns.hbox.hidden)
ns.hs.top = contentRect.y + contentRect.height - ns.hbox.boxObject.height + 'px';
},

show: function(text) {
if (!text) {
if (false === ns.hbox.hidden)
ns.hide(ns.type === 'status'? 0 : ns.delay);
return;
}

if ('http://' === (text+'').substr(0, 7))
text = (text+'').substr(7);

ns.display.value = text;
ns.timeout = null;
if (true === ns.hbox.hidden) {
ns.hbox.hidden = false;
ns.resetStyle();
}
ns.hs.opacity = 1;
},

hide: function(hide_delay) {
ns.timeout = setTimeout(function(){
ns.hs.opacity = 0;
ns.timeout = setTimeout(function(){
ns.hbox.hidden = true;
ns.display.classList.remove('right');
ns.display.setAttribute('value', ns.statusText = '');
}, ns.duration);
}, hide_delay || 0);
},
};

ns.init();
return;

function log(){ Application.console.log(Array.slice(arguments).join('\n')); }
function $(id) document.getElementById(id);
function addStyle(css) {
var pi = document.createProcessingInstruction(
'xml-stylesheet',
'type="text/css" href="data:text/css;utf-8,' + encodeURIComponent(css) + '"'
);
return document.insertBefore(pi, document.documentElement);
}


})(<![CDATA[
@namespace url(http://www.mozilla.org/keymaster/gateke ... s.only.xul);

#chrome-status {
  position: fixed !important;
}

#chrome-status-label {
  width: 100% !important;
  -moz-box-sizing: border-box !important;
  margin: 0px !important;
  padding: 1px 6px !important;
  border-top: 1px solid #bbd !important;
  border-right: 1px solid #bbd !important;
  border-left: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  -moz-border-radius-topright: 4px !important;
background-color: #D2E1F6 !important;
  color: #333 !important;
}

#chrome-status-label.right {
  border-top: 1px solid #bbd !important;
  border-left: 1px solid #bbd !important;
  border-right: 1px solid transparent !important;
  border-bottom: 1px solid transparent !important;
  -moz-border-radius-topright: 0px !important;
  -moz-border-radius-topleft: 4px !important;
}

]]>.toString());
tulip17
千年狐狸
千年狐狸
  • UID34021
  • 注册日期2010-09-17
  • 最后登录2024-04-17
  • 发帖数980
  • 经验678枚
  • 威望1点
  • 贡献值420点
  • 好评度51点
  • 社区居民
  • 忠实会员
10楼#
发布于:2011-01-25 11:10



background-color: #D2E1F6 !important;


谢谢回复!这个参数是背景颜色,不是链接字体阴影,我想改的是字体阴影
tulip17
千年狐狸
千年狐狸
  • UID34021
  • 注册日期2010-09-17
  • 最后登录2024-04-17
  • 发帖数980
  • 经验678枚
  • 威望1点
  • 贡献值420点
  • 好评度51点
  • 社区居民
  • 忠实会员
11楼#
发布于:2011-01-25 11:10
发现了,原来字体阴影与所用炫彩风格有关,不能改吧
ybbao
非常火狐
非常火狐
  • UID27616
  • 注册日期2008-12-29
  • 最后登录2023-05-21
  • 发帖数721
  • 经验53枚
  • 威望0点
  • 贡献值36点
  • 好评度1点
  • 社区居民
12楼#
发布于:2011-01-25 11:10
新的每小时版和脚本冲突了,载入的时候重叠在一起了。
fireman
火狐狸
火狐狸
  • UID33071
  • 注册日期2010-06-15
  • 最后登录2013-04-27
  • 发帖数139
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
13楼#
发布于:2011-01-25 11:10
太能折腾了,B12pre已经跟chrome一模一样的状态栏了。
kmc
kmc
管理员
管理员
  • UID165
  • 注册日期2004-11-25
  • 最后登录2022-09-22
  • 发帖数9186
  • 经验397枚
  • 威望1点
  • 贡献值124点
  • 好评度41点
  • 忠实会员
  • 终身成就
  • 社区居民
14楼#
发布于:2011-01-25 11:10
那看来我得一辈子用S4E了。
Waterfox Current和Firefox Nightly都用,逐渐走出XUL扩展依赖
上一页
游客

返回顶部