forked from madhur/leetcode-format-chrome-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.js
More file actions
33 lines (25 loc) · 1.01 KB
/
content.js
File metadata and controls
33 lines (25 loc) · 1.01 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
let s = document.createElement("script");
// Install beautify
s.type = "module";
s.src = chrome.runtime.getURL("beautify.js");
(document.head || document.documentElement).appendChild(s);
// install script.js
s = document.createElement("script");
s.type = "module";
s.src = chrome.runtime.getURL("script.js");
(document.head || document.documentElement).appendChild(s);
s = document.createElement("script");
s.src = chrome.runtime.getURL("standalone.js");
(document.head || document.documentElement).appendChild(s);
s = document.createElement("script");
s.src = chrome.runtime.getURL("parser-babel.mjs");
s.type = "module";
(document.head || document.documentElement).appendChild(s);
s = document.createElement("script");
s.src = chrome.runtime.getURL("parser-typescript.mjs");
s.type = "module";
(document.head || document.documentElement).appendChild(s);
s = document.createElement("script");
s.src = chrome.runtime.getURL("parser-java.js");
s.type = "module";
(document.head || document.documentElement).appendChild(s);