-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontent.js
More file actions
50 lines (33 loc) · 1.14 KB
/
Copy pathcontent.js
File metadata and controls
50 lines (33 loc) · 1.14 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
38
39
40
41
42
43
44
45
46
47
48
49
50
//attribution: https://commons.wikimedia.org/wiki/File:Radar2.gif
(function bootsrap() {
detectStore();
$("body").addClass("snd_style snd_" + store.name);
if (!run)
return;
debugDir("permanentOpt", permanentOpt);
if (permanentOpt == null)
initPermanentOptions();
else
startCheckingStartFunction();
bindNavigationKeys();
})();
function startCheckingStartFunction() {
setGlobalOptions();
setInterval(startFunctions, 500);
}
function startFunctions() {
var links = store.getMarkReadLinks();
//if links processed, or no links, or paused
if (links.hasClass("snd_processed") || links.length == 0)
return;
store.getOptionsDOM(store.placeholderForInfoOptions());
if (paused)
return;
updateBodyStyleClass();
debugDir("Attaching events to links:", links);
links.addClass("snd_processed").click(store.markReadFunc);
store.getItemList().addClass("snd_processed_item").click(store.markSingleItem);
//store.getItemList().first().click();
store.initPageItems();
store.processPageItems();
}