firefox: disable userContent

Currently, only used for Twitter and it breaks the back button.
This commit is contained in:
Vincent Bernat 2022-09-11 21:58:59 +02:00
parent 25f645325c
commit a7116145b7
2 changed files with 2 additions and 19 deletions

View file

@ -1,18 +1 @@
/* To be symlinked in Firefox profile as chrome/userContent.css */
@-moz-document domain(twitter.com) {
html {
scroll-snap-type: y proximity !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;
}
}

View file

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