1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-08 12:02:33 +01:00

Remove ads settings as they were never used

This commit is contained in:
Allan Wang 2022-09-15 20:40:29 -07:00
parent 7bb6a233ca
commit d84b2345bf
No known key found for this signature in database
GPG Key ID: C93E3F9C679D7A56
3 changed files with 1 additions and 11 deletions

View File

@ -77,8 +77,6 @@ class OldPrefs @Inject internal constructor(factory: KPrefFactory) :
var showSuggestedGroups: Boolean by kpref("suggested_groups_feed", true)
var showFacebookAds: Boolean by kpref("facebook_ads", false)
var showStories: Boolean by kpref("show_stories", true)
var animate: Boolean by kpref("fancy_animations", true)

View File

@ -39,8 +39,6 @@ interface FeedPrefs : PrefsBase {
var showSuggestedPosts: Boolean
var showFacebookAds: Boolean
var showStories: Boolean
var mainActivityLayoutType: Int
@ -85,12 +83,6 @@ class FeedPrefsImpl @Inject internal constructor(factory: KPrefFactory, oldPrefs
override var showSuggestedPosts: Boolean by kpref("suggested_posts_feed", true)
override var showFacebookAds: Boolean by
kpref(
"facebook_ads",
oldPrefs.showFacebookAds, /* false */
)
override var showStories: Boolean by kpref("show_stories", oldPrefs.showStories /* true */)
override var mainActivityLayoutType: Int by

View File

@ -118,7 +118,7 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() {
CssHider.NON_RECENT.maybe(
(web.url?.contains("?sk=h_chr") ?: false) && prefs.aggressiveRecents
),
CssHider.ADS.maybe(!prefs.showFacebookAds),
CssHider.ADS,
CssHider.POST_ACTIONS.maybe(!prefs.showPostActions),
CssHider.POST_REACTIONS.maybe(!prefs.showPostReactions),
CssAsset.FullSizeImage.maybe(prefs.fullSizeImage),