diff options
author | Allan Wang <me@allanwang.ca> | 2019-07-01 11:02:06 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-07-01 11:02:06 -0700 |
commit | 79efcadf89f324f04f57d22c3b60a05fd297f2b9 (patch) | |
tree | d120c699b17add7d775b11e88b1b147efd39b69f | |
parent | 05403e185adcd5ae9829027fb53a134dec6b7d97 (diff) | |
download | frost-79efcadf89f324f04f57d22c3b60a05fd297f2b9.tar.gz frost-79efcadf89f324f04f57d22c3b60a05fd297f2b9.tar.bz2 frost-79efcadf89f324f04f57d22c3b60a05fd297f2b9.zip |
Exclude story entries within feed
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt b/app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt index 891a1dbf..18fd0673 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt @@ -38,7 +38,13 @@ enum class CssHider(vararg val items: String) : InjectorContract { COMPOSER("#MComposer"), MESSENGER("._s15", "[data-testid=info_panel]", "js_i"), NON_RECENT("article:not([data-store*=actor_name])"), - STORIES("#MStoriesTray") + STORIES( + "#MStoriesTray", + // Main article wrapper; this may end up excluding more than just stories + "article:not([data-store-id])", + // Sub element with just the tray; title is not a part of this + "[data-testid=story_tray]" + ) ; val injector: JsInjector by lazy { |