mirror of
https://github.com/NohamR/Ciao-YGG.git
synced 2026-11-25 15:19:55 +00:00
[1.0] First commit
This commit is contained in:
commit
e827d5b430
23 files changed
+845
No files matched your search
@@ -0,0 +1,16 @@
|
||||
function injectScript(file, node) {
|
||||
var th = document.getElementsByTagName(node)[0];
|
||||
var s = document.createElement('script');
|
||||
s.setAttribute('type', 'text/javascript');
|
||||
s.setAttribute('src', file);
|
||||
th.appendChild(s);
|
||||
}
|
||||
|
||||
function injectLink(file, node) {
|
||||
var th = document.getElementsByTagName(node)[0];
|
||||
var link = document.createElement("link");
|
||||
link.href = file;
|
||||
link.type = "text/css";
|
||||
link.rel = "stylesheet";
|
||||
th.appendChild(link);
|
||||
}
|
||||
Reference in new issue
Block a user