-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_bookmark.js
42 lines (38 loc) · 1.15 KB
/
main_bookmark.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
36
37
38
39
40
41
42
javascript: (function(){
if (!($ = window.jQuery)) {
script = document.createElement( "script" );
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js";
script.onload=getTheWood;
document.body.appendChild(script);
}
else {
getTheWood();
}
function getTheWood() {
if(!(window.VIDOOK_MAIN__)){
var SCRIPT_URL = "https://raw.github.com/prabhjotSL/bookmarkJS/master/main.js";
var jsCode = document.createElement("script");
jsCode.setAttribute("src", SCRIPT_URL);
jsCode.onload = getJSTimezonePlugin;
document.body.appendChild(jsCode);
}
else {
getJSTimezonePlugin();
}
}
function getJSTimezonePlugin() {
if(!(window.jstz)){
var SCRIPT_URL = "//cdnjs.cloudflare.com/ajax/libs/jstimezonedetect/1.0.4/jstz.min.js";
var jsCode = document.createElement("script");
jsCode.setAttribute("src", SCRIPT_URL);
jsCode.onload = releasetheTrojanHorse;
document.body.appendChild(jsCode);
}
else {
releasetheTrojanHorse();
}
}
function releasetheTrojanHorse() {
VIDOOK_MAIN__.makeCorsRequest();
}
})();