Oct 27, 2021

[小技] firefox 關閉分頁tab上面的網站小圖示icons

為什麼要這麼做呢
因為最近疫情,youtube看得有點多
分頁也開得多,結果紅色的網頁icons一堆排在一起
看久了覺得很刺眼,又懶得裝add-ons
只好學一下手動關閉

主要依照第一篇的教學
How to Add a User Stylesheet in Firefox
https://davidwalsh.name/firefox-user-stylesheet

先打開firefox的Profile Directory
創造一個名稱叫做chrome的資料夾
在裡面新建兩個檔案 userContent.css、userChrome.css(樣式寫在這個檔內)
下一步很重要,網路上很多舊的教學沒有這一步
打開about:config
尋找機碼 toolkit.legacyUserProfileCustomizations.stylesheets
預設值是關,改成true
重開firefox即可

如果把 機碼 toolkit.legacyUserProfileCustomizations.stylesheets 關掉
userChrome.css的設定就不再生效囉

以下是各種參考資料:

How do I choose an icon for a pinned tab? | Firefox Support Forum | Mozilla Support
https://support.mozilla.org/en-US/questions/1068724

UserChrome.css - MozillaZine Knowledge Base
http://kb.mozillazine.org/UserChrome.css

Website Themes & Skins by Stylish | Userstyles.org
https://userstyles.org/

userChrome.css for Customizing Firefox
https://www.userchrome.org/

Where to Find Style Recipes
https://www.userchrome.org/find-user-style-recipes.html

No comments:

Post a Comment