aboutsummaryrefslogtreecommitdiff
path: root/plugins/style/style.js
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-07-27 14:34:16 +0200
committerNunoSempere <nuno.sempere@protonmail.com>2023-07-27 14:34:16 +0200
commitb87693e4c57f36e528a9d6f46febcac32c90b808 (patch)
treecf2cd5d52085def93d1c40de5cf79e8b9e05b527 /plugins/style/style.js
parente2c81f25957ea542f430132c9c96033ff77cfede (diff)
use -O3 -Wall gcc flags, add old.reddit.com css
Diffstat (limited to 'plugins/style/style.js')
-rw-r--r--plugins/style/style.js18
1 files changed, 18 insertions, 0 deletions
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