From a7116145b7a5eb04488ba536f73df32fe9bfe3b1 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 11 Sep 2022 21:58:59 +0200 Subject: [PATCH] firefox: disable userContent Currently, only used for Twitter and it breaks the back button. --- dotfiles/firefox.css | 17 ----------------- dotfiles/firefox.js | 4 ++-- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/dotfiles/firefox.css b/dotfiles/firefox.css index 8c8934c..9d0fba4 100644 --- a/dotfiles/firefox.css +++ b/dotfiles/firefox.css @@ -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
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; - } -} diff --git a/dotfiles/firefox.js b/dotfiles/firefox.js index 216b296..33e34a0 100644 --- a/dotfiles/firefox.js +++ b/dotfiles/firefox.js @@ -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);