-
-
Notifications
You must be signed in to change notification settings - Fork 86
Expand file tree
/
Copy pathmedium_fixVietnameseFont.js
More file actions
37 lines (33 loc) · 1.03 KB
/
medium_fixVietnameseFont.js
File metadata and controls
37 lines (33 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { UfsGlobal } from "./content-scripts/ufs_global.js";
export default {
icon: "https://cdn-icons-png.flaticon.com/512/5968/5968906.png",
name: {
en: "Medium - Fix vietnamese font",
vi: "Medium - Fix font Tiếng Việt",
},
description: {
en: `Fix vietnamese font in Medium<br/>
<ul>
<li>Click 1 time to fix font in current Medium page (dont need to reload)</li>
<li>Enable autorun for next times you enter Medium</li>
</ul>`,
vi: `Sửa lỗi font Tiếng Việt khó nhìn trong Medium<br/>
<ul>
<li>Click 1 lần để sửa trang hiện tại (không cần tải lại trang)</li>
<li>Bật tự chạy cho các lần sau vào Medium</li>
</ul>`,
},
changeLogs: {
"2024-31-05": "init",
},
whiteList: ["https://medium.com/*", "https://*.medium.com/*"],
contentScript: {
onDocumentStart: injectCss,
onClick: injectCss,
},
};
function injectCss() {
UfsGlobal.DOM.injectCssFile(
chrome.runtime.getURL("/scripts/medium_fixVietnameseFont.css")
);
}