Skip to content

Commit adebaf8

Browse files
committed
refactor code
1 parent be7defb commit adebaf8

Some content is hidden

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

47 files changed

+49
-4
lines changed

empty_script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ export default {
1010
},
1111
blackList: [],
1212
whiteList: [],
13+
1314
func: function () {},
14-
};
15+
};

scripts/checkWebDie.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
en: "Check web die using downforeveryoneorjustme",
99
vi: "Dùng bên thứ 3 để kiểm tra xem website có bị die thật không",
1010
},
11+
1112
func: function () {
1213
let url = prompt("Enter web url to check", location.hostname);
1314

scripts/darkModePDF.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
en: "Enable darkmode for PDF",
99
vi: "Bật chế độ tối cho PDF bạn đang xem",
1010
},
11+
1112
func: function () {
1213
var cover = document.createElement("div");
1314
let css = `position: fixed;

scripts/doutube_downloadWatchingStory.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
},
1010
blackList: [],
1111
whiteList: [],
12+
1213
func: function () {
1314
const src = document.querySelector("video")?.src;
1415
if (src) window.open(src);

scripts/doutube_downloadWatchingVideo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
},
1010
blackList: [],
1111
whiteList: [],
12+
1213
func: function () {
1314
const isElementInViewport = (el) => {
1415
const rect = el.getBoundingClientRect();

scripts/doutube_enableDownloadVideo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
},
1010
blackList: [],
1111
whiteList: [],
12+
1213
func: function () {
1314
Array.from(document.querySelectorAll("video")).map(
1415
(_) => (_.attributes.controlslist.value = "nofullscreen noremoteplayback")

scripts/doutube_getAllVideoInUserProfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
},
1010
blackList: [],
1111
whiteList: ["doutu.be"],
12+
1213
func: async function () {
1314
const WAIT_FOR_FULL_VIDEO_LOADED = 5000;
1415
const FIND_FULL_VIDEO_INTERVAL = 100;

scripts/download_image.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
en: "Download all images in viewport",
99
vi: "Tải tất cả hình ảnh đang thấy trong trang web",
1010
},
11+
1112
func: function () {
1213
// images downloader: https://chrome.google.com/webstore/detail/image-downloader/cnpniohnfphhjihaiiggeabnkjhpaldj
1314
const imageUrlRegex =

scripts/enableTextSelection.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default {
88
en: "Enable text selection for website",
99
vi: "Dùng cho web nào không cho phép bôi đen văn bản",
1010
},
11+
1112
func: function () {
1213
function R(a) {
1314
ona = "on" + a;

scripts/fb_downloadAlbumMedia.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export default {
99
},
1010
blackList: [],
1111
whiteList: ["www.facebook.com"],
12+
1213
func: function () {
1314
const accessToken = prompt("Enter access token:", "");
1415
if (!accessToken) return;

0 commit comments

Comments
 (0)