mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-09-20 07:31:40 +02:00
commit
2f6069d85d
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
6
.idea/inspectionProfiles/profiles_settings.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<component name="InspectionProjectProfileManager">
|
||||
<settings>
|
||||
<option name="PROJECT_PROFILE" value="ktlint" />
|
||||
<version value="1.0" />
|
||||
</settings>
|
||||
</component>
|
@ -26,7 +26,7 @@ import android.webkit.WebView
|
||||
enum class CssHider(vararg val items: String) : InjectorContract {
|
||||
CORE("[data-sigil=m_login_upsell]", "[role=progressbar]"),
|
||||
HEADER(
|
||||
"#header", "#mJewelNav", "[data-sigil=MTopBlueBarHeader]",
|
||||
"#header:not(.mFuturePageHeader):not(.titled)", "#mJewelNav", "[data-sigil=MTopBlueBarHeader]",
|
||||
"#header-notices", "[data-sigil*=m-promo-jewel-header]"
|
||||
),
|
||||
ADS(
|
||||
|
@ -33,7 +33,7 @@ import java.util.Locale
|
||||
* The enum name must match the css file name
|
||||
*/
|
||||
enum class JsAssets : InjectorContract {
|
||||
MENU, CLICK_A, CONTEXT_A, MEDIA, HEADER_BADGES, HEADER_HIDER, TEXTAREA_LISTENER, NOTIF_MSG,
|
||||
MENU, CLICK_A, CONTEXT_A, MEDIA, HEADER_BADGES, TEXTAREA_LISTENER, NOTIF_MSG,
|
||||
DOCUMENT_WATCHER
|
||||
;
|
||||
|
||||
|
@ -105,7 +105,6 @@ open class FrostWebViewClient(val web: FrostWebView) : BaseWebViewClient() {
|
||||
JsAssets.CLICK_A,
|
||||
CssHider.ADS.maybe(!Prefs.showFacebookAds),
|
||||
JsAssets.CONTEXT_A,
|
||||
// JsAssets.HEADER_HIDER,
|
||||
JsAssets.MEDIA
|
||||
)
|
||||
else
|
||||
|
@ -98,7 +98,6 @@ class LoginWebView @JvmOverloads constructor(
|
||||
view.setBackgroundColor(Color.TRANSPARENT)
|
||||
if (url.isFacebookUrl)
|
||||
view.jsInject(
|
||||
JsAssets.HEADER_HIDER,
|
||||
CssHider.CORE,
|
||||
Prefs.themeInjector
|
||||
)
|
||||
|
@ -6,6 +6,11 @@
|
||||
<item text="" />
|
||||
-->
|
||||
|
||||
<version title="v2.2.4" />
|
||||
<item text="Show top bar to allow sharing posts" />
|
||||
<item text="" />
|
||||
<item text="" />
|
||||
|
||||
<version title="v2.2.3" />
|
||||
<item text="Add ability to hide stories" />
|
||||
<item text="Remove fbclid from urls" />
|
||||
|
@ -1,12 +0,0 @@
|
||||
"use strict";
|
||||
(function () {
|
||||
var header = document.querySelector('#header');
|
||||
if (!header) {
|
||||
return;
|
||||
}
|
||||
var jewel = header.querySelector('#mJewelNav');
|
||||
if (!jewel) {
|
||||
return;
|
||||
}
|
||||
header.style.display = 'none';
|
||||
}).call(undefined);
|
@ -1,17 +0,0 @@
|
||||
(function () {
|
||||
const header = document.querySelector('#header');
|
||||
|
||||
if (!header) {
|
||||
return
|
||||
}
|
||||
|
||||
const jewel = header.querySelector('#mJewelNav');
|
||||
|
||||
if (!jewel) {
|
||||
return
|
||||
}
|
||||
|
||||
(<HTMLElement>header).style.display = 'none'
|
||||
}).call(undefined);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user