aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-10-07 15:15:10 -0400
committerGitHub <noreply@github.com>2017-10-07 15:15:10 -0400
commit1369aa283a2167cf2a9525bd856edd48c39eea21 (patch)
tree95230383143d2c9997b245058776425f62202e0f /app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
parent6bca83c464337c37ebcbabe47f8a8e2e44dd4794 (diff)
downloadfrost-1369aa283a2167cf2a9525bd856edd48c39eea21.tar.gz
frost-1369aa283a2167cf2a9525bd856edd48c39eea21.tar.bz2
frost-1369aa283a2167cf2a9525bd856edd48c39eea21.zip
Add more css hiders (#373)
* Add more css hiders * Add toggles and injectors * Fix composer hider * Update changelog
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
index 31aaaa6f..3275b2a6 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/web/FrostWebViewClients.kt
@@ -76,7 +76,9 @@ open class FrostWebViewClient(val webCore: FrostWebViewCore) : BaseWebViewClient
CssAssets.ROUND_ICONS.maybe(Prefs.showRoundedIcons),
CssHider.HEADER,
CssHider.CORE,
+ CssHider.COMPOSER.maybe(!Prefs.showComposer),
CssHider.PEOPLE_YOU_MAY_KNOW.maybe(!Prefs.showSuggestedFriends && IS_FROST_PRO),
+ CssHider.SUGGESTED_GROUPS.maybe(!Prefs.showSuggestedGroups && IS_FROST_PRO),
Prefs.themeInjector,
CssHider.NON_RECENT.maybe((webCore.url?.contains("?sk=h_chr") ?: false)
&& Prefs.aggressiveRecents))