firefox: add a userContent.css

This commit is contained in:
Vincent Bernat 2022-08-13 09:32:50 +02:00
parent 2f201d14a2
commit 2453d0e600
2 changed files with 26 additions and 0 deletions

23
dotfiles/firefox.css Normal file
View file

@ -0,0 +1,23 @@
/* To be symlinked in Firefox profile as chrome/userContent.css */
@-moz-document domain(twitter.com) {
html {
scroll-snap-type: y mandatory !important;
}
/* Tweets in the timeline are <article> elements */
article {
scroll-snap-align: start !important;
}
/* Un-stick the sticky header and make it “snappable” as well */
[aria-label="Home timeline"] > :first-child {
position: static !important;
scroll-snap-align: start !important;
}
/* Hide the “new Tweets available” floating toast notification */
[aria-label="New Tweets are available."] {
display: none !important;
}
}

View file

@ -79,3 +79,6 @@ user_pref("browser.safebrowsing.malware.enabled", false);
// Don't trim URLs // Don't trim URLs
user_pref("browser.urlbar.trimURLs", false); user_pref("browser.urlbar.trimURLs", false);
// Enable userContent.css
user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);