dindog
千年狐狸
千年狐狸
  • UID30818
  • 注册日期2009-10-24
  • 最后登录2023-02-03
  • 发帖数1195
  • 经验59枚
  • 威望0点
  • 贡献值26点
  • 好评度10点
阅读:7673回复: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跳个票的时间现在可以发布几个正式版了-_-
fedora.nic
小狐狸
小狐狸
  • UID29741
  • 注册日期2009-07-20
  • 最后登录2011-09-22
  • 发帖数39
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2011-01-25 11:10
kangjinwen:4.0b12如何在附加组件栏显示标题和url…… 以前用的uc脚本现在不管用了……回到原帖


搭车铜球
kangjinwen
小狐狸
小狐狸
  • UID29368
  • 注册日期2009-06-29
  • 最后登录2018-06-11
  • 发帖数65
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
2楼#
发布于:2011-01-25 11:10
4.0b12如何在附加组件栏显示标题和url…… 以前用的uc脚本现在不管用了……
fly2never
火狐狸
火狐狸
  • UID29103
  • 注册日期2009-06-08
  • 最后登录2017-06-06
  • 发帖数116
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
3楼#
发布于:2011-01-25 11:10
还是觉得保留状态栏性价比高,特别是对于addon很多的童鞋来说
Every browser does fast. But not every browser does good.
msky
千年狐狸
千年狐狸
  • UID14649
  • 注册日期2006-09-21
  • 最后登录2023-04-03
  • 发帖数2959
  • 经验166枚
  • 威望0点
  • 贡献值12点
  • 好评度9点
  • 社区居民
4楼#
发布于:2011-01-25 11:10
当你鼠标移动到左下角时,显示自动跳到右下角,避免你要复制或者点击左下角的网页时被挡住,你鼠标移动到右下角时就回左下角下,默认是在左下角。
红袖小乱
小狐狸
小狐狸
  • UID35203
  • 注册日期2011-02-06
  • 最后登录2012-05-03
  • 发帖数1
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
5楼#
发布于:2011-01-25 11:10
romantickoala

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

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


用这个脚本为什么一会显示在左边,一会又显示在右边啊。。。
zebraman
狐狸大王
狐狸大王
  • UID6956
  • 注册日期2005-06-25
  • 最后登录2017-11-15
  • 发帖数445
  • 经验35枚
  • 威望0点
  • 贡献值44点
  • 好评度0点
  • 社区居民
  • 忠实会员
6楼#
发布于:2011-01-25 11:10
很好的脚本。当鼠标不在链接上悬停时在左下或右下显示标题,反之则显示链接及打开网页时的状态。
kmc
kmc
管理员
管理员
  • UID165
  • 注册日期2004-11-25
  • 最后登录2022-09-22
  • 发帖数9186
  • 经验397枚
  • 威望1点
  • 贡献值124点
  • 好评度41点
  • 忠实会员
  • 终身成就
  • 社区居民
7楼#
发布于:2011-01-25 11:10
那看来我得一辈子用S4E了。
Waterfox Current和Firefox Nightly都用,逐渐走出XUL扩展依赖
fireman
火狐狸
火狐狸
  • UID33071
  • 注册日期2010-06-15
  • 最后登录2013-04-27
  • 发帖数139
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
8楼#
发布于:2011-01-25 11:10
太能折腾了,B12pre已经跟chrome一模一样的状态栏了。
ybbao
非常火狐
非常火狐
  • UID27616
  • 注册日期2008-12-29
  • 最后登录2023-05-21
  • 发帖数721
  • 经验53枚
  • 威望0点
  • 贡献值36点
  • 好评度1点
  • 社区居民
9楼#
发布于:2011-01-25 11:10
新的每小时版和脚本冲突了,载入的时候重叠在一起了。
tulip17
千年狐狸
千年狐狸
  • UID34021
  • 注册日期2010-09-17
  • 最后登录2024-05-03
  • 发帖数980
  • 经验678枚
  • 威望1点
  • 贡献值420点
  • 好评度51点
  • 社区居民
  • 忠实会员
10楼#
发布于:2011-01-25 11:10
发现了,原来字体阴影与所用炫彩风格有关,不能改吧
tulip17
千年狐狸
千年狐狸
  • UID34021
  • 注册日期2010-09-17
  • 最后登录2024-05-03
  • 发帖数980
  • 经验678枚
  • 威望1点
  • 贡献值420点
  • 好评度51点
  • 社区居民
  • 忠实会员
11楼#
发布于:2011-01-25 11:10



background-color: #D2E1F6 !important;


谢谢回复!这个参数是背景颜色,不是链接字体阴影,我想改的是字体阴影
jiahuiqu
火狐狸
火狐狸
  • UID32722
  • 注册日期2010-05-03
  • 最后登录2012-10-09
  • 发帖数218
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
12楼#
发布于: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());
xf_mao
狐狸大王
狐狸大王
  • UID31861
  • 注册日期2010-01-29
  • 最后登录2017-09-18
  • 发帖数357
  • 经验19枚
  • 威望0点
  • 贡献值4点
  • 好评度1点
  • 社区居民
13楼#
发布于:2011-01-25 11:10
这个脚本能不能不把扩展的图标放到地址栏里面去?
since 2005
jiahuiqu
火狐狸
火狐狸
  • UID32722
  • 注册日期2010-05-03
  • 最后登录2012-10-09
  • 发帖数218
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
14楼#
发布于:2011-01-25 11:10
tulip17

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



background-color: #D2E1F6 !important;
上一页
游客

返回顶部