update code
This commit is contained in:
parent
50acb05f23
commit
32402275ac
2 changed files with 7 additions and 13 deletions
6
app.json
6
app.json
|
|
@ -4,7 +4,7 @@
|
||||||
"slug": "fake-check-bd",
|
"slug": "fake-check-bd",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"orientation": "portrait",
|
"orientation": "portrait",
|
||||||
"icon": "./assets/images/fraud_logo.png",
|
"icon": "./assets/images/fraud_logo.jpeg",
|
||||||
"scheme": "myapp",
|
"scheme": "myapp",
|
||||||
"userInterfaceStyle": "automatic",
|
"userInterfaceStyle": "automatic",
|
||||||
"newArchEnabled": true,
|
"newArchEnabled": true,
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"adaptiveIcon": {
|
"adaptiveIcon": {
|
||||||
"foregroundImage": "./assets/images/fraud_logo.png",
|
"foregroundImage": "./assets/images/fraud_logo.jpeg",
|
||||||
"backgroundColor": "#ffffff"
|
"backgroundColor": "#ffffff"
|
||||||
},
|
},
|
||||||
"package": "com.smfahimhossen.android"
|
"package": "com.smfahimhossen.android"
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
[
|
[
|
||||||
"expo-splash-screen",
|
"expo-splash-screen",
|
||||||
{
|
{
|
||||||
"image": "./assets/images/fraud_logo.png",
|
"image": "./assets/images/fraud_logo.jpeg",
|
||||||
"imageWidth": 200,
|
"imageWidth": 200,
|
||||||
"resizeMode": "contain",
|
"resizeMode": "contain",
|
||||||
"backgroundColor": "#ffffff"
|
"backgroundColor": "#ffffff"
|
||||||
|
|
|
||||||
|
|
@ -329,7 +329,7 @@ export default function HomeScreen() {
|
||||||
Object.assign(button.style, {
|
Object.assign(button.style, {
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
right: "5px",
|
right: "5px",
|
||||||
top: "-30px",
|
top: "-34px",
|
||||||
border: "none",
|
border: "none",
|
||||||
borderRadius: "8px",
|
borderRadius: "8px",
|
||||||
cursor: "pointer",
|
cursor: "pointer",
|
||||||
|
|
@ -345,14 +345,8 @@ export default function HomeScreen() {
|
||||||
button.style.color="white";
|
button.style.color="white";
|
||||||
button.style.padding="5px 5px";
|
button.style.padding="5px 5px";
|
||||||
button.style.background="blue";
|
button.style.background="blue";
|
||||||
|
collectDataImmediately(post, button, caption, imageURLs, postId);
|
||||||
|
|
||||||
const seeMoreElement = post.querySelector("span[style*='color:#65676b']");
|
|
||||||
|
|
||||||
if (seeMoreElement) {
|
|
||||||
await handleSeeMoreClick(seeMoreElement, post, button, caption, imageURLs, postId);
|
|
||||||
} else {
|
|
||||||
collectDataImmediately(post, button, caption, imageURLs, postId);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
post.appendChild(button);
|
post.appendChild(button);
|
||||||
|
|
@ -378,7 +372,7 @@ export default function HomeScreen() {
|
||||||
});
|
});
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", () => {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
document.querySelectorAll("div.m.bg-s3").forEach((post) => {
|
document.querySelectorAll("div.m.displayed.bg-s3").forEach((post) => {
|
||||||
if (!post.dataset.processed) {
|
if (!post.dataset.processed) {
|
||||||
collectPostData(post);
|
collectPostData(post);
|
||||||
}
|
}
|
||||||
|
|
@ -393,7 +387,7 @@ export default function HomeScreen() {
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<WebView
|
<WebView
|
||||||
ref={webviewRef}
|
ref={webviewRef}
|
||||||
source={{ uri: "https://m.facebook.com" }}
|
source={{ uri: "https://www.facebook.com" }}
|
||||||
injectedJavaScript={injectedJavaScript}
|
injectedJavaScript={injectedJavaScript}
|
||||||
startInLoadingState={true}
|
startInLoadingState={true}
|
||||||
onMessage={handleMessage}
|
onMessage={handleMessage}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue