Skip to content

Commit 2f78143

Browse files
committed
auto remove spam posts in group
1 parent 887c909 commit 2f78143

7 files changed

+438
-1
lines changed

popup/tabs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ const tabs = [
123123
s.fb_getAvatarFromUid,
124124
s.fb_exportSaved,
125125
createTitle("--- Hot ---", "--- Nổi bật ---"),
126-
s.fb_autoLike,
127126
s.fb_revealDeletedMessages,
128127
s.fb_moreReactionStory,
129128
s.fb_toggleLight,
@@ -132,6 +131,8 @@ const tabs = [
132131
s.fb_blockSeenStory,
133132
s.fb_getPostReactionCount,
134133
s.fb_whoIsTyping,
134+
s.fb_autoLike,
135+
s.fb_autoRemoveSpamPostGroup,
135136
// s.fb_blockSeenAndTyping,
136137
createTitle("--- Statistic ---", "--- Thống kê ---"),
137138
s.fb_searchGroupForOther,

scripts/@index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,4 @@ export { default as fb_autoLike } from "./fb_autoLike.js";
172172
export { default as guland_VIP } from "./guland_VIP.js";
173173
export { default as pip_anything } from "./pip_anything.js";
174174
export { default as douyin_batchDownload } from "./douyin_batchDownload.js";
175+
export { default as fb_autoRemoveSpamPostGroup } from "./fb_autoRemoveSpamPostGroup.js";
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
body {
2+
min-width: 350px;
3+
min-height: 200px;
4+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
5+
font-size: 16px;
6+
background-color: #333;
7+
color: #ccc
8+
}
9+
10+
11+
h3 {
12+
text-decoration: underline;
13+
margin-bottom: 8px;
14+
}
15+
16+
17+
/* The container */
18+
.container {
19+
display: block;
20+
position: relative;
21+
padding-left: 35px;
22+
margin-bottom: 12px;
23+
cursor: pointer;
24+
font-size: 22px;
25+
-webkit-user-select: none;
26+
-moz-user-select: none;
27+
-ms-user-select: none;
28+
user-select: none;
29+
}
30+
31+
/* Hide the browser's default radio button */
32+
.container input {
33+
position: absolute;
34+
opacity: 0;
35+
cursor: pointer;
36+
}
37+
38+
/* Create a custom radio button */
39+
.checkmark {
40+
position: absolute;
41+
top: 0;
42+
left: 0;
43+
height: 25px;
44+
width: 25px;
45+
background-color: #eee;
46+
border-radius: 50%;
47+
}
48+
49+
/* On mouse-over, add a grey background color */
50+
.container:hover input~.checkmark {
51+
background-color: #ccc;
52+
}
53+
54+
/* When the radio button is checked, add a blue background */
55+
.container input:checked~.checkmark {
56+
background-color: #2196F3;
57+
}
58+
59+
/* Create the indicator (the dot/circle - hidden when not checked) */
60+
.checkmark:after {
61+
content: "";
62+
position: absolute;
63+
display: none;
64+
}
65+
66+
/* Show the indicator (dot/circle) when checked */
67+
.container input:checked~.checkmark:after {
68+
display: block;
69+
}
70+
71+
/* Style the indicator (dot/circle) */
72+
.container .checkmark:after {
73+
top: 9px;
74+
left: 9px;
75+
width: 8px;
76+
height: 8px;
77+
border-radius: 50%;
78+
background: white;
79+
}
80+
81+
82+
/* ======================= Range ====================== */
83+
84+
input[type=number] {
85+
padding: 5px;
86+
font-size: large;
87+
}
88+
89+
.button {
90+
background-color: #04AA6D;
91+
border: none;
92+
color: white;
93+
padding: 15px 32px;
94+
text-align: center;
95+
text-decoration: none;
96+
display: inline-block;
97+
font-size: 16px;
98+
cursor: pointer;
99+
width: 100%;
100+
margin-top: 30px;
101+
}
102+
103+
.button.running {
104+
background-color: rgb(151, 12, 12);
105+
/* cursor: not-allowed; */
106+
}
107+
108+
.input-row {
109+
display: flex;
110+
justify-content: space-between;
111+
align-items: center;
112+
flex-direction: row;
113+
white-space: pre;
114+
}
115+
116+
.input-row input[type=number] {
117+
/* max-width: 80px; */
118+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Auto duyệt bài spam group fb</title>
8+
9+
<link rel="stylesheet" href="./fb_autoRemoveSpamPostGroup.css">
10+
</head>
11+
12+
<body>
13+
<h1>Auto duyệt bài spam group fb</h1>
14+
15+
<h3>Chọn hành động</h3>
16+
<label class="container">Đăng bài
17+
<input type="radio" checked="checked" name="action">
18+
<span class="checkmark"></span>
19+
</label>
20+
<label class="container">Xoá bài
21+
<input type="radio" name="action">
22+
<span class="checkmark"></span>
23+
</label>
24+
25+
<div class="input-container">
26+
<h3>Thời gian chờ (giây):</h3>
27+
<span><i>(ngẫu nhiên trong khoảng)</i></span><br />
28+
<div class="input-row">
29+
<input type="number" min="0" value="5" id="inputWaitMin" /> ➡️ <input type="number" min="0" value="20"
30+
id="inputWaitMax" />
31+
</div>
32+
</div>
33+
34+
<h3>Duyệt tối đa bao nhiêu bài?</h3>
35+
<span><i>(nhập 0 để duyệt hết)</i></span><br />
36+
<input type="number" id="max-posts" value="10">
37+
38+
<button class="button" id="start-btn">Bắt đầu</button>
39+
40+
<script src="./fb_autoRemoveSpamPostGroup_main.js"></script>
41+
</body>
42+
43+
</html>

scripts/fb_autoRemoveSpamPostGroup.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import { BADGES } from "./helpers/badge.js";
2+
3+
export default {
4+
icon: '<i class="fa-solid fa-check fa-lg"></i>',
5+
name: {
6+
en: "📝 Auto remove fb group's spam posts",
7+
vi: "📝 Auto duyệt bài spam group fb",
8+
},
9+
description: {
10+
en: "Auto Accept / Reject spam posts on your facebook group.",
11+
vi: "Tự động Đăng / Xoá những bài spam trong group facebook của bạn.",
12+
img: "/scripts/fb_autoRemoveSpamPostGroup.png",
13+
},
14+
badges: [BADGES.new],
15+
16+
changeLogs: {
17+
"2024-08-09": "init",
18+
},
19+
whiteList: ["https://www.facebook.com/*"],
20+
21+
popupScript: {
22+
onClick: () => {
23+
window.open("/scripts/fb_autoRemoveSpamPostGroup.html", "_self");
24+
},
25+
},
26+
};
17.4 KB
Loading

0 commit comments

Comments
 (0)