Skip to content

Commit 5a8993e

Browse files
committed
update
1 parent 97ffd28 commit 5a8993e

8 files changed

+69
-43
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.zero-width-characters {
2+
background-color: rgba(255, 0, 0, 0.2) !important;
3+
position: relative;
4+
}
5+
6+
.zero-width-characters:after {
7+
background: #ffb2b2;
8+
bottom: -14px;
9+
color: #000;
10+
content: 'Warning: Contains zero-width characters.';
11+
float: right;
12+
font-family: monospace;
13+
font-size: 10px;
14+
font-weight: bold;
15+
line-height: 1;
16+
padding: 2px 4px;
17+
position: absolute;
18+
right: 0;
19+
}
20+
21+
.zero-width-character:after {
22+
color: red;
23+
content: '\u25CF';
24+
}

scripts/detect_zeroWidthCharacters.js

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -74,35 +74,15 @@ export default {
7474
}, 10);
7575
})();
7676

77-
UsefulScriptGlobalPageContext.DOM.injectCssCode(`
78-
.zero-width-characters {
79-
background-color: rgba(255, 0, 0, 0.2) !important;
80-
position: relative;
81-
}
82-
.zero-width-characters:after {
83-
background: #ffb2b2;
84-
bottom: -14px;
85-
color: #000;
86-
content: 'Warning: Contains zero-width characters.';
87-
float: right;
88-
font-family: monospace;
89-
font-size: 10px;
90-
font-weight: bold;
91-
line-height: 1;
92-
padding: 2px 4px;
93-
position: absolute;
94-
right: 0;
95-
}
96-
.zero-width-character:after {
97-
color: red;
98-
content: '\u25CF';
99-
}`);
77+
UsefulScriptGlobalPageContext.DOM.injectCssFile(
78+
UsefulScriptGlobalPageContext.Extension.getURL(
79+
"scripts/detect_zeroWidthCharacters.css"
80+
)
81+
);
10082
},
10183

102-
onClick: () => {
103-
prompt(
104-
"Đọc bài viết bên dưới để hiểu rõ hơn chức năng này",
84+
onClickExtension: () =>
85+
window.open(
10586
"https://viblo.asia/p/ky-tu-zero-width-sat-thu-vo-hinh-nam-giua-doan-van-ban-thuan-vo-hai-L4x5xM7qKBM"
106-
);
107-
},
87+
),
10888
};

scripts/fb_invisible_message.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,4 +179,9 @@ export default {
179179
);
180180
})();
181181
},
182+
183+
onClickExtension: () =>
184+
window.open(
185+
"https://www.facebook.com/groups/j2team.community/posts/1607769529555161/"
186+
),
182187
};

scripts/fb_moreReactionStory.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export default {
1010
},
1111
whiteList: ["https://www.facebook.com/*"],
1212

13+
// FB POST: https://www.facebook.com/groups/j2team.community/posts/1769666783365434
1314
// Source https://github.com/whoant/react-story-facebook
1415
onDocumentStart: async () => {
1516
// const ID_USER = require('RelayAPIConfigDefaults').actorID;
@@ -208,4 +209,9 @@ export default {
208209
);
209210
UsefulScriptGlobalPageContext.DOM.injectCssFile(cssFile);
210211
},
212+
213+
onClickExtension: () =>
214+
window.open(
215+
"https://www.facebook.com/groups/j2team.community/posts/1769666783365434"
216+
),
211217
};

scripts/fb_revealDeletedMessages.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ export default {
7979

8080
if (isUnsent) {
8181
threadKey =
82-
UsefulScriptGlobalPageContext.Facebook.decodeArrId(
83-
threadKey
84-
);
82+
UsefulScriptGlobalPageContext.Facebook.decodeArrId(threadKey);
8583
senderId =
8684
UsefulScriptGlobalPageContext.Facebook.decodeArrId(senderId);
8785

@@ -142,4 +140,9 @@ export default {
142140
};
143141
});
144142
},
143+
144+
onClickExtension: () =>
145+
window.open(
146+
"https://www.facebook.com/groups/j2team.community/posts/1651683238497123/"
147+
),
145148
};

scripts/studocu_bypassPreview.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.page-content {
2+
filter: none !important;
3+
}
4+
5+
._de9e5fdb76af,
6+
._869f7c361ca9,
7+
span.l {
8+
display: none !important;
9+
}

scripts/studocu_bypassPreview.js

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,11 @@ export default {
88
en: "View VIP document on Studocu.com, bypass preview popup / reveal blurred content.",
99
vi: "Xem tài liệu VIP trên Studocu.com, loại bỏ popup chặn xem trước, loại bỏ hiệu ứng làm mờ.",
1010
},
11-
onDocumentIdle: () => {
12-
let style = document.createElement("style");
13-
style.textContent = `
14-
.page-content {
15-
filter: none !important;
16-
}
17-
._de9e5fdb76af,
18-
._869f7c361ca9,
19-
span.l {
20-
display: none !important;
21-
}`;
22-
document.body.appendChild(style);
11+
onDocumentIdle: () => {
12+
UsefulScriptGlobalPageContext.DOM.injectCssFile(
13+
UsefulScriptGlobalPageContext.Extension.getURL(
14+
"scripts/studocu_bypassPreview.css"
15+
)
16+
);
2317
},
2418
};

scripts/studyphim_unlimited.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ export default {
1717
true
1818
);
1919
},
20+
21+
onClickExtension: () =>
22+
window.open(
23+
"https://www.facebook.com/groups/j2team.community/posts/565933393738785/"
24+
),
2025
};

0 commit comments

Comments
 (0)