sh Firefox Tab hider脚本(linux或OSX)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh Firefox Tab hider脚本(linux或OSX)相关的知识,希望对你有一定的参考价值。

#!/bin/bash
# 
# Based upon [[https://superuser.com/questions/1268732/how-to-hide-tab-bar-tabstrip-in-firefox-57-quantum/1268734#1268734][How to hide tab bar (tabstrip) in Firefox 57+ Quantum]] by [[https://superuser.com/users/162466/vasyanovikov][VasyaNovikov]]
# This causes the [[https://support.mozilla.org/en-US/questions/1187186][The Back Button is top right under the Red close button on my Mac]] issue.
# Resolve that by right-clicking the toolbar, then inserting three Flexible Space into the toolbar on the far-left-hand side.
case $( uname ) in
"Linux")
  profile_dir=~/.mozilla/firefox/$( ls -tr ~/.mozilla/firefox/ | grep -v profiles.ini | tail -1 )
  ;;
"Darwin")
  profile_dir=~/Library/Application\ Support/Firefox/Profiles/$( ls -tr ~/Library/Application\ Support/Firefox/Profiles | tail -1 )
  ;;
esac
if [ ! -d  "${profile_dir}"/chrome ] ; then
  mkdir -p "${profile_dir}"/chrome
fi
echo '#TabsToolbar { visibility: collapse !important; }' >> "${profile_dir}"/chrome/userChrome.css

以上是关于sh Firefox Tab hider脚本(linux或OSX)的主要内容,如果未能解决你的问题,请参考以下文章

在搜索结果中屏蔽掉垃圾网站 - Google Hit Hider by Domain

sh 该脚本将找到最新的Firefox二进制包,下载并重新打包为Slackware格式。

用于 Firefox 的 Selenium IDE Ctrl-Tab

如何在终端中制作 Python 脚本“tab-complete”目录?

sh 通过POSIX shell脚本在Linux上安装Sublime Text 3 - http://simonewebdesign.it/install-sublime-text-3-on-li

sh 通过POSIX shell脚本在Linux上安装Sublime Text 3 - http://simonewebdesign.it/install-sublime-text-3-on-li