Skip to content

Commit 98004af

Browse files
committed
refactor
1 parent a549788 commit 98004af

17 files changed

+11
-38
lines changed

popup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ async function initShowDonate() {
10181018
let count = (await Storage.get("openPopupCount")) || 0;
10191019
count++;
10201020
Storage.set("openPopupCount", count);
1021-
if (!clickedDonate && count > 0 && count % 10 === 0) {
1021+
if (count > 0 && count % 10 === 0 && !clickedDonate) {
10221022
const res = await Swal.fire({
10231023
icon: "info",
10241024
title: t({

popup/recommend.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export const Recommend = {
123123
en: "Support youtube, tiktok, instagram, twitter/x, bilibili, twitch, vimeo, soundcloud, dailymotion, pinterest, reddit, tumblr, ...",
124124
vi: "Hỗ trợ youtube, tiktok, instagram, twitter/x, bilibili, twitch, vimeo, soundcloud, dailymotion, pinterest, reddit, tumblr, ...",
125125
},
126-
badges: [BADGES.recommend, BADGES.new],
126+
badges: [BADGES.recommend, BADGES.hot],
127127
buttons: [
128128
{
129129
icon: '<i class="fa-brands fa-github"></i>',
@@ -333,7 +333,7 @@ export const Recommend = {
333333
en: "View all videos you watched on facebook",
334334
vi: "Xem lại những video bạn đã xem trên facebook",
335335
},
336-
badges: [BADGES.new],
336+
badges: [BADGES.hot],
337337
popupScript: {
338338
onClick: () =>
339339
window.open(
@@ -352,7 +352,6 @@ export const Recommend = {
352352
en: "View pass events that you have joined on facebook.",
353353
vi: "Xem tất cả sự kiện bạn từng tham gia trên facebook.",
354354
},
355-
badges: [BADGES.new],
356355
popupScript: {
357356
onClick: () => window.open("https://www.facebook.com/events/past"),
358357
},
@@ -368,7 +367,6 @@ export const Recommend = {
368367
en: "View your friend's birthdays each month on facebook",
369368
vi: "Xem từng tháng có những sinh nhật nào của bạn bè trên facebook.",
370369
},
371-
badges: [BADGES.new],
372370
popupScript: {
373371
onClick: () => window.open("https://www.facebook.com/events/birthdays"),
374372
},
@@ -400,7 +398,7 @@ export const Recommend = {
400398
en: "Your fb account has been hacked? Facebook can help you.",
401399
vi: "Tài khoản fb của bạn bị hack? Facebook có thể giúp bạn.",
402400
},
403-
badges: [BADGES.new],
401+
badges: [BADGES.hot],
404402
popupScript: {
405403
onClick: () => window.open("https://fb.com/hacked"),
406404
},

scripts/bypass_learnAnything.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { UfsGlobal } from "./content-scripts/ufs_global.js";
2-
import { BADGES } from "./helpers/badge.js";
32

43
export default {
54
icon: "https://learn-anything.xyz/favicon.ico",
@@ -12,7 +11,6 @@ export default {
1211
vi: "Xem nội dung web learn-anything.xyz không cần đăng ký member",
1312
img: "/scripts/bypass_LearnAnything.png",
1413
},
15-
badges: [BADGES.new],
1614
changeLogs: {
1715
"2024-07-01": "init",
1816
},

scripts/fb_blockSeenStory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default {
1212
en: "Block 'Seen' story in facebook. Your friend will not know that you have seen his/her stories.",
1313
vi: "Chặn 'Đã xem' cho story facebook. Bạn bè sẽ không biết được bạn đã xem story của họ.",
1414
},
15-
badges: [BADGES.new],
15+
badges: [BADGES.hot],
1616
changeLogs: {
1717
"2024-05-31": "init",
1818
},

scripts/fb_getPostReactionCount.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { UfsGlobal } from "./content-scripts/ufs_global.js";
22
import { fetchGraphQl, getFbdtsg } from "./fb_GLOBAL.js";
33
import { hookXHR } from "./libs/ajax-hook/index.js";
4-
import { BADGES } from "./helpers/badge.js";
54

65
export default {
76
icon: '<i class="fa-solid fa-thumbs-up fa-lg"></i>',
@@ -14,7 +13,6 @@ export default {
1413
vi: "Hiện tổng lượt thích bài viết khi đưa chuột vào xem lượt thích.",
1514
img: "/scripts/fb_getPostReactionCount.jpg",
1615
},
17-
badges: [BADGES.new],
1816
changeLogs: {
1917
"2024-06-25": "init",
2018
},

scripts/fb_stopNewFeed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default {
2121
changeLogs: {
2222
"2024-06-12": "init",
2323
},
24-
badges: [BADGES.new],
24+
badges: [BADGES.hot],
2525

2626
whiteList: ["https://www.facebook.com/*"],
2727

scripts/fb_toggleNewFeed.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { UfsGlobal } from "./content-scripts/ufs_global.js";
2-
import { BADGES } from "./helpers/badge.js";
32

43
export default {
54
icon: '<i class="fa-solid fa-eye-slash fa-lg"></i>',
@@ -11,7 +10,6 @@ export default {
1110
en: "Hide facebook new feed (home page) for better focus to work",
1211
vi: "Ẩn dòng thời gian facebook (trang chủ) để tập trung làm việc",
1312
},
14-
badges: [BADGES.hot],
1513
infoLink:
1614
"https://www.facebook.com/groups/j2team.community/posts/1919935575005220/",
1715
whiteList: ["https://*.facebook.com/*"],

scripts/github_HTMLPreview.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { BADGES } from "./helpers/badge.js";
2-
31
export default {
42
icon: '<i class="fa-solid fa-square-arrow-up-right fa-lg"></i>',
53
name: {
@@ -10,7 +8,6 @@ export default {
108
en: "Preview github's HTML file in any repo without download code.",
119
vi: "Xem trước giao diện file HTML trên bất kỳ repo github nào mà không cần tải code về.",
1210
},
13-
badges: [BADGES.new],
1411
changeLogs: {
1512
"2024-06-14": "init",
1613
},

scripts/github_openRepoPages.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { getRepoNameFromUrl } from "./github_goToAnyCommit.js";
2-
import { BADGES } from "./helpers/badge.js";
32

43
export default {
54
icon: '<i class="fa-solid fa-square-arrow-up-right fa-lg"></i>',
@@ -15,7 +14,6 @@ export default {
1514
<b>username</b>.github.io/<b>repo</b><br/>
1615
github.com/<b>username</b>/<b>repo</b><br/>`,
1716
},
18-
badges: [BADGES.new],
1917
changeLogs: {
2018
"2024-06-03": "init",
2119
},

scripts/guland_VIP.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { UfsGlobal } from "./content-scripts/ufs_global.js";
2+
import { BADGES } from "./helpers/badge.js";
23

34
export default {
45
icon: "https://guland.vn/bds/img/apple-touch-icon.png",
@@ -11,6 +12,7 @@ export default {
1112
vi: "Xem quy hoạch đất không bị làm phiền bởi popup vip tại Guland.vn",
1213
img: "/scripts/guland_VIP.png",
1314
},
15+
badges: [BADGES.new],
1416
infoLink: "https://guland.vn",
1517
changeLogs: {
1618
"2024-07-14": "init",

scripts/insta_getFollowForOther.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { UfsGlobal } from "./content-scripts/ufs_global.js";
2-
import { BADGES } from "./helpers/badge.js";
32

43
export default {
54
icon: '<i class="fa-solid fa-user-secret fa-lg"></i>',
@@ -11,7 +10,6 @@ export default {
1110
en: "Know about your (or your friends's) following / followers on instagram. Export to json file",
1211
vi: "Biết bạn bè của bạn (hoặc chính bạn) đang follow những ai / được ai follow trên instagram. Tải về file json",
1312
},
14-
badges: [BADGES.new],
1513
whiteList: ["https://www.instagram.com/*"],
1614

1715
popupScript: {

scripts/pip_anything.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UfsGlobal } from "./content-scripts/ufs_global.js";
1+
import { BADGES } from "./helpers/badge.js";
22

33
export default {
44
icon: '<i class="fa-regular fa-object-group fa-lg"></i>',
@@ -11,9 +11,9 @@ export default {
1111
vi: "Xem bất kỳ giao diện nào trong cửa sổ nổi (Picture in picture), không chỉ mỗi video, click chọn phần tử từ website để xem trong cửa sổ nổi.",
1212
img: "",
1313
},
14-
14+
badges: [BADGES.beta],
1515
changeLogs: {
16-
date: "description",
16+
"2024-07-20": "init",
1717
},
1818

1919
popupScript: {

scripts/screenshotVisiblePage.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { UfsGlobal } from "./content-scripts/ufs_global.js";
2-
import { BADGES } from "./helpers/badge.js";
32
import {
43
attachDebugger,
54
detachDebugger,
@@ -47,9 +46,6 @@ export default {
4746
},
4847
},
4948
],
50-
51-
badges: [BADGES.new],
52-
5349
changeLogs: {
5450
"2024-06-10": "init",
5551
},

scripts/showImageOnHoverLink.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { BADGES } from "./helpers/badge.js";
2-
31
export default {
42
icon: '<i class="fa-solid fa-arrow-pointer fa-lg"></i>',
53
name: {
@@ -10,7 +8,6 @@ export default {
108
en: "Show preview image when you hover mouse over an image link",
119
vi: "Xem trước hình ảnh khi bạn đưa chuột qua link hình ảnh",
1210
},
13-
badges: [BADGES.new],
1411
changeLogs: {
1512
"2024-06-19": "init",
1613
},

scripts/youtube_changeCountry.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { BADGES } from "./helpers/badge.js";
2-
31
export default {
42
icon: '<i class="fa-solid fa-map-location-dot fa-lg"></i>',
53
name: {
@@ -10,7 +8,6 @@ export default {
108
en: "Change youtube country to view content in other country",
119
vi: "Đổi quốc gia youtube để xem nội dung youtube bên các nước khác",
1210
},
13-
badges: [BADGES.new],
1411
changeLogs: {
1512
"2024-07-07": "init",
1613
},

scripts/youtube_getVideoCaption.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { UfsGlobal } from "./content-scripts/ufs_global.js";
22
import { runScriptInCurrentTab } from "./helpers/utils.js";
3-
import { BADGES } from "./helpers/badge.js";
43

54
export default {
65
icon: '<i class="fa-solid fa-closed-captioning fa-lg"></i>',
@@ -13,7 +12,6 @@ export default {
1312
vi: "- Bấm để tải về tất cả phụ đề của video youtube đang xem<br/>- Bật tự chạy để hiển thị phụ đề thời gian thực",
1413
img: "/scripts/youtube_getVideoCaption.png",
1514
},
16-
badges: [BADGES.new],
1715
changeLogs: {
1816
"2024-07-04": "init",
1917
},

scripts/youtube_getVideoThumbnail.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { BADGES } from "./helpers/badge.js";
21
import { getIdFromYoutubeURL } from "./youtube_downloadVideo.js";
32

43
export default {
@@ -11,7 +10,6 @@ export default {
1110
en: "Get largest thumbnail of playing youtube video",
1211
vi: "Tải về hình thumbnail độ phân giải lớn nhất của video youtube đang xem",
1312
},
14-
badges: [BADGES.new],
1513
changeLogs: {
1614
"2024-07-04": "init",
1715
},

0 commit comments

Comments
 (0)