Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
userChrome.css
/*#region Vivaldi */
#browser:not(.is-settingspage) > #header {
min-height: 0 !important;
height: 0;
}
#panels-container #panels > #switch {
-webkit-app-region: drag;
}
#browser {
--drag-area-height: 10px;
--trafficlights-width: 100px;
}
.popup .window-buttongroup:after,
.address-top .window-buttongroup:after {
position: absolute;
top: 100%; bottom: calc(-1 * var(--drag-area-height));
left: 0; right: 0;
content: '';
-webkit-app-region: drag;
}
.popup .toolbar-addressbar,
.address-top .toolbar-addressbar {
padding-right: var(--trafficlights-width);
}
.popup .window-buttongroup,
.address-top .window-buttongroup {
z-index: 1;
}
/*#region*/
/*unhide webpanel when toggle off (only hide the vertical buttons) */
.inner > #panels-container.switcher {
width: unset !important;
}
#panels-container.switcher > #panels > #switch {
display: none;
}
#panels-container.switcher .panel-group > .panel-collapse-guard,
#panels-container.switcher .webpanel-stack > .webpanel {
visibility: visible !important;
}
/*#endregion*/
.webpanel.visible > .webpanel-header {
display: none !important;
}
/*#endregion Vivaldi */
/*#region Firefox */
#TabsToolbar {
visibility: collapse;
}
#sidebar-header {
font-size: 1rem !important;
padding: 0 !important;
}
#main-window:not([inFullscreen]) toolbar {
padding: 0 128px;
}
.urlbar-input-box {
font-size: 20px;
}
@sonhanguyen

This comment has been minimized.

Copy link
Owner Author

@sonhanguyen sonhanguyen commented Dec 21, 2019

cd ~/.mozilla/firefox || cd ~/Library/Application\ Support/Firefox*
if [[ $(grep '\[Profile[^0]\]' profiles.ini) ]]
then PROFPATH=$(grep -E '^\[Profile|^Path|^Default' profiles.ini | grep -1 '^Default=1' | grep '^Path' | cut -c6-)
else PROFPATH=$(grep 'Path=' profiles.ini | sed 's/^Path=//' | tail -n1)
fi

mkdir $PROFPATH/chrome
rm $PROFPATH/chrome/userChrome.css
curl https://gist.githubusercontent.com/sonhanguyen/7d3dcab4c8db1dbb38905bbdcadb9379/raw -o $PROFPATH/chrome/userChrome.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment