From b87693e4c57f36e528a9d6f46febcac32c90b808 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 27 Jul 2023 14:34:16 +0200 Subject: use -O3 -Wall gcc flags, add old.reddit.com css --- plugins/style/style.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'plugins/style/style.js') diff --git a/plugins/style/style.js b/plugins/style/style.js index 8d3254c..c142373 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -70,6 +70,24 @@ if (document.domain == "twitter.com" ){ ` } +if (document.domain == "reddit.com" || document.domain == "old.reddit.com"){ + styles = ` + /* kill sidebar ads */ + .native-ad-container, + .premium-banner-outer, + .native-sidebar-ad, + .infobar-toaster-container, + #eu-cookie-policy, + .ad-container, + a[href="/premium"], + [data-promoted^="true"], + a[href^="https://alb.reddit.com"] + { + display: none !important; + } + ` +} + if(styles != null){ var styleSheet = document.createElement('style') styleSheet.innerText = styles -- cgit v1.2.3