aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-10-07 13:28:12 -0400
committerAllan Wang <me@allanwang.ca>2017-10-07 13:28:12 -0400
commit1d9dd79d427bd260af564a3f4d3bf97da29e311e (patch)
tree6810ada26339240cd0eea2f2b87c2b3e74cc11ab /app/src
parent6bca83c464337c37ebcbabe47f8a8e2e44dd4794 (diff)
downloadfrost-1d9dd79d427bd260af564a3f4d3bf97da29e311e.tar.gz
frost-1d9dd79d427bd260af564a3f4d3bf97da29e311e.tar.bz2
frost-1d9dd79d427bd260af564a3f4d3bf97da29e311e.zip
Add more css hiders
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt2
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/injectors/InjectorTest.kt10
2 files changed, 7 insertions, 5 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 a926c8ac..9cc23895 100644
--- a/app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt
+++ b/app/src/main/kotlin/com/pitchedapps/frost/injectors/CssHider.kt
@@ -15,6 +15,8 @@ enum class CssHider(vararg val items: String) : InjectorContract {
"article[data-store*=sponsor]"
),
PEOPLE_YOU_MAY_KNOW("article._d2r"),
+ SUGGESTED_GROUPS("article[data-ft*=\"ei\":]"),
+ COMPOSER("MComposer"),
MESSENGER("._s15", "[data-testid=info_panel]", "js_i"),
NON_RECENT("article:not([data-store*=actor_name])")
;
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/injectors/InjectorTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/injectors/InjectorTest.kt
index 9da4f33f..76b37afe 100644
--- a/app/src/test/kotlin/com/pitchedapps/frost/injectors/InjectorTest.kt
+++ b/app/src/test/kotlin/com/pitchedapps/frost/injectors/InjectorTest.kt
@@ -9,11 +9,11 @@ import org.junit.Test
*/
class InjectorTest {
- private fun JsInjector.print()
- = println(function)
-
@Test
- fun printAdHider() {
- CssHider.ADS.injector.print()
+ fun printAll() {
+ println("CSS Hider Injectors")
+ CssHider.values().forEach {
+ println("${it.injector.function}\n")
+ }
}
}