![Unread Tabs Restorer 미리보기](https://addons.mozilla.org/static-server/img/addon-icons/default-64.d144b50f2bb8.png)
Unread Tabs Restorer 제작자: satcp
Restores ability to style unread tabs via userChrome.css.
이 확장 기능을 사용하려면 Firefox가 필요함
확장 메타 데이터
스크린샷
![](https://addons.mozilla.org/user-media/previews/thumbs/264/264388.jpg?modified=1639237298)
정보
Unread Tabs Restorer
Some Firefox users prefer to apply different styles to tabs depending on their status for clarity: unloaded, unread,... In the past there were extensions like Tab Mix Plus that do this but support for legacy XUL extensions was removed with the release of Firefox 57 in November 2017. Many legacy extensions, including Tab Mix Plus, were never upgraded to WebExtensions due to limitations of the new API. Nevertheless, it was still possible to style tabs depending on their status through userChrome.css:
With the release of Firefox 61 in June 2018 support was removed for detecting unread tabs in userChrome.css [Bug 1453957].
At this moment the only way to restore this functionality is by injecting JavaScript in each tab page to change the tab title after loading the page. That is exactly what this extension does. The tab title change can be detected in userChrome.css with titlechanged. After installing this extension
Permissions
Unread Tabs Restorer requires following permissions:
Principle of operation
The extension is less than 40 lines of code spread over 3 files:
Usage
To use custom tab styles and Unread Tabs Restorer you must enable the loading of userChrome.css. This is disabled by default in newer Firefox versions:
This will make the text of unloaded tabs red, loading tabs grey and unread tabs blue. Feel free to customize the styles to your liking.
Finally restart Firefox to enjoy the new tab styles.
Future
There are no plans to add additional features to Unread Tabs Restorer. The extension was developed only to restore the lost functionality of unread tabs. The extension will become obsolete when Mozilla reimplements the unread tabs functionality or removes support for userChrome.css completely.
Credits
Unread Tabs Restorer is based on the Tab Flag extension by EffPeh.
License
Unread Tabs Restorer is published under the Mozilla Public License Version 2.0.
Some Firefox users prefer to apply different styles to tabs depending on their status for clarity: unloaded, unread,... In the past there were extensions like Tab Mix Plus that do this but support for legacy XUL extensions was removed with the release of Firefox 57 in November 2017. Many legacy extensions, including Tab Mix Plus, were never upgraded to WebExtensions due to limitations of the new API. Nevertheless, it was still possible to style tabs depending on their status through userChrome.css:
.tabbrowser-tab[pending] { /* Set styles for unloaded tab */ }
.tabbrowser-tab[busy] { /* Set styles for loading tab */ }
.tabbrowser-tab[unread] { /* Set styles for unread tab */ }
With the release of Firefox 61 in June 2018 support was removed for detecting unread tabs in userChrome.css [Bug 1453957].
At this moment the only way to restore this functionality is by injecting JavaScript in each tab page to change the tab title after loading the page. That is exactly what this extension does. The tab title change can be detected in userChrome.css with titlechanged. After installing this extension
.tabbrowser-tab[unread]
must be changed to .tabbrowser-tab[titlechanged]
in userChrome.css: .tabbrowser-tab[pending] { /* Set styles for unloaded tab */ }
.tabbrowser-tab[busy] { /* Set styles for loading tab */ }
.tabbrowser-tab[titlechanged] { /* Set styles for unread tab */ }
Permissions
Unread Tabs Restorer requires following permissions:
- Access your data for all web sites
- Access browser tabs
Principle of operation
The extension is less than 40 lines of code spread over 3 files:
- background.js
- tab_loaded.js
- tab_activated.js
Usage
To use custom tab styles and Unread Tabs Restorer you must enable the loading of userChrome.css. This is disabled by default in newer Firefox versions:
- Launch Firefox
- Navigate to
about:config
- Search for
toolkit.legacyUserProfileCustomizations.stylesheets
and set it totrue
- Navigate to
about:profiles
- Locate the Root Directory of the profile in use and click the Open Folder button
- Create a new folder named
chrome
- Create a new text file named
userChrome.css
in the chrome folder - Open userChrome.css in a plain text editor and paste following CSS styles:
.tabbrowser-tab[pending] { color: red !important; }
.tabbrowser-tab[busy] { color: dimgray !important; }
.tabbrowser-tab[titlechanged] { color: blue !important; }
This will make the text of unloaded tabs red, loading tabs grey and unread tabs blue. Feel free to customize the styles to your liking.
Finally restart Firefox to enjoy the new tab styles.
Future
There are no plans to add additional features to Unread Tabs Restorer. The extension was developed only to restore the lost functionality of unread tabs. The extension will become obsolete when Mozilla reimplements the unread tabs functionality or removes support for userChrome.css completely.
Credits
Unread Tabs Restorer is based on the Tab Flag extension by EffPeh.
License
Unread Tabs Restorer is published under the Mozilla Public License Version 2.0.
평가
권한더 알아보기
다음 권한 필요:
- 브라우저 탭에 접근
- 모든 웹사이트에서 사용자의 데이터에 접근
추가 정보
- 버전
- 1.0
- 크기
- 17.71 KB
- 마지막 업데이트
- 3년 전 (2021년 12월 11일)
- 관련 카테고리
- 라이선스
- Mozilla Public License 2.0
- 버전 목록
모음집에 추가
satcp 님의 다른 확장 기능
- 아직 평점이 없습니다
- 아직 평점이 없습니다
- 아직 평점이 없습니다
- 아직 평점이 없습니다
- 아직 평점이 없습니다
- 아직 평점이 없습니다