forked from cyruzzo/AboveVTT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Load.js
35 lines (22 loc) · 1.3 KB
/
Load.js
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
var l = document.createElement('div');
l.setAttribute("style", "display:none;");
l.setAttribute("id", "extensionpath");
l.setAttribute("data-path", chrome.runtime.getURL("/"));
(document.body || document.documentElement).appendChild(l);
["color-picker.js", "TokenMenu.js","SceneData.js", "jquery.ui.touch-punch.js", "CombatTracker.js", "StatHandler.js", "rpg-dice-roller.bundle.min.js", "MonsterDice.js", "Fog.js", "jquery.contextMenu.js", "PlayerPanel.js", "Token.js", "Jitsi.js", "MessageBroker.js", "ScenesHandler.js", "MonsterPanel.js", "ScenesPanel.js", "Main.js"].forEach(function(value, index, array) {
var s = document.createElement('script');
s.src = chrome.runtime.getURL(value);
(document.head || document.documentElement).appendChild(s);
});
var l = document.createElement('link');
l.href = chrome.runtime.getURL("jquery.contextMenu.css");
l.rel = "stylesheet";
(document.head || document.documentElement).appendChild(l);
var l = document.createElement('link');
l.href = chrome.runtime.getURL("abovevtt.css");
l.rel = "stylesheet";
(document.head || document.documentElement).appendChild(l);
var l = document.createElement('link');
l.href = chrome.runtime.getURL("color-picker.min.css");
l.rel = "stylesheet";
(document.head || document.documentElement).appendChild(l);