Skip to content

Commit 785bf48

Browse files
committed
refactor
1 parent eafcb76 commit 785bf48

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+66
-194
lines changed

popup/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { GlobalBlackList, MsgType } from "../scripts/helpers/constants.js";
1+
import { MsgType } from "../scripts/helpers/constants.js";
22
import {
33
checkBlackWhiteList,
44
isActiveScript,
@@ -312,7 +312,7 @@ async function runScript(script) {
312312
}
313313
} else {
314314
let w = script?.whiteList?.join(", ");
315-
let b = [...(script?.blackList || []), ...GlobalBlackList]?.join(", ");
315+
let b = script?.blackList?.join(", ");
316316

317317
openModal(
318318
t({

scripts/doutube_downloadWatchingStory.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export default {
77
en: "Download story that you are watching",
88
vi: "Tải story bạn đang xem",
99
},
10-
blackList: [],
11-
whiteList: [],
1210

1311
onClick: function () {
1412
const src = document.querySelector("video")?.src;

scripts/doutube_downloadWatchingVideo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export default {
77
en: "Download video doutu.be that you are watching",
88
vi: "Tải video doutu.be bạn đang xem",
99
},
10-
blackList: [],
11-
whiteList: [],
1210

1311
onClick: function () {
1412
const isElementInViewport = (el) => {

scripts/doutube_enableDownloadVideo.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ export default {
77
en: "Enable download button for all video",
88
vi: "Bật chức năng download cho mọi video trong trang",
99
},
10-
blackList: [],
11-
whiteList: [],
1210

1311
onClick: function () {
1412
Array.from(document.querySelectorAll("video")).map(

scripts/doutube_getAllVideoInUserProfile.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ export default {
77
en: "Get all video in doutu.be user profile",
88
vi: "Tải tất cả video từ profile của user doutu.be bất kỳ",
99
},
10-
blackList: [],
11-
whiteList: ["*://doutu.be"],
10+
whiteList: ["https://doutu.be/*"],
1211

1312
onClick: async function () {
1413
// https://stackoverflow.com/a/18197341/11898496

scripts/douyin_downloadWachingVideo.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export default {
1010
en: "Show all downloadable videos in current douyin webpage",
1111
vi: "Hiển thị mọi video có thể tải trong trang douyin hiện tại",
1212
},
13-
blackList: [],
1413
whiteList: ["https://www.douyin.com/*"],
1514

1615
onClick: showTheVideos.onClick,

scripts/envato_bypassPreview.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export default {
88
en: "Remove preview iframe on Envato sites (Themeforest, Codecanyon)",
99
vi: "Bypass khung preview khi xem demo trong trang web Envato (Themeforest, Codecanyon)",
1010
},
11-
blackList: [],
12-
whiteList: [],
1311

1412
onClick: function () {
1513
// Source code: https://gist.github.com/J2TEAM/f79f950c31cc9fe4ed705515385ed75f

scripts/fb_downloadCommentVideo.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export default {
1010
en: "Download video in facebook comment that you are watching",
1111
vi: "Tải video trong bình luận facebook bạn đang xem",
1212
},
13-
whiteList: [],
14-
13+
1514
onClick: fb_storySaver.onClick,
1615
};
1716

scripts/fb_downloadWatchingVideo.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default {
1212
en: "Download facebook video that you are watching (watch/story/comment)",
1313
vi: "Tải video facebook bạn đang xem (watch/story/comment)",
1414
},
15-
blackList: [],
1615
whiteList: ["https://www.facebook.com/*"],
1716

1817
onClickExtension: async function () {

scripts/fb_getAlbumId.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ export default {
88
en: "Get id of facebook album in current website",
99
vi: "Lấy id của facebook album trong trang web hiện tại",
1010
},
11-
blackList: [],
12-
whiteList: ["*://www.facebook.com"],
11+
whiteList: ["https://www.facebook.com/*"],
1312

1413
onClick: function () {
1514
// Lấy album id - khi đang xem 1 album, ví dụ https://www.facebook.com/media/set/?vanity=ColourfulSpace&set=a.945632905514659

0 commit comments

Comments
 (0)