标签页计数器

阅读:269回复:2
2024-04-21 22:59
写私信
楼主#
方式一:
扩展:https://addons.mozilla.org/zh-CN/firefox/addon/tab-counter-icon/
计算数量=固定标签页数量+非固定标签页数量
缺点:字体有点小看不清
方式二:
样式
/*==标签计数==*/
#main-window {counter-reset: tabs;}
.tabbrowser-tab:not(:-moz-any([pinned],[concealed])) {counter-increment: tabs;}
#alltabs-button {visibility: visible!important;}
#alltabs-button:after {
    content: counter(tabs);
    font-size: 12pt !important;
    display: -moz-box;}
#alltabs-button > :-moz-any(label, image) {display: none;}
#alltabs-button menuitem {max-width: 200px !important;}

缺点:只计算非固定标签页数量
优点:字体大小可调,比上面的扩展看着方便
2024-04-24 12:12
写私信
1楼#
要算固定标签页,你把[pinned]这块删掉不就完了
2024-04-24 20:59
写私信
2楼#
taoww:要算固定标签页,你把这块删掉不就完了回到原帖
实际上我也不懂,这还是我多年前,抄的别人的。谢谢提醒哈