-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpertinence.html
60 lines (52 loc) · 1.82 KB
/
pertinence.html
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
51
52
53
54
55
56
57
58
59
60
<html>
<body onload="pertinent()">
<script>
function pertinent() {
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
var windows = [
'fi.php', // last window
'reportContext.php?notContext=25',
'listItems.php?tickler=false&type=a&contextId=25¬spacecontext=true&dueonly=true&liveparents=*',
'index.php',
'reportLists.php?listId=118&type=c',
'Lunar.php',
'reportLists.php?listId=13&type=C',
'reportLists.php?listId=168&type=C',
'reportLists.php?listId=160&type=c',
'reportLists.php?listId=170&type=C',
'listItems.php?tickler=false&type=w&contextId=25¬spacecontext=true&nextonly=true&dueonly=true&liveparents=*',
'reportLists.php?listId=120&type=C',
'ical://x',
'ToD.php', // second window
'editListItems.php?itemId=3646&type=C&expand=TRUE' // first/current window
];
// firefox sequence
// var windows = [
// 'reportContext.php?notContext=25', // last window
// 'index.php',
// 'ToD.php', // second window
// 'editListItems.php?itemId=3646&type=C' // first/current window
// ];
// brave sequence
// var windows = [
// 'reportContext.php?notContext=25', // second window
// 'index.php',
// 'ToD.php', // last window
// 'editListItems.php?itemId=3646&type=C' // first/current window
// ];
var arrayLength = windows.length;
async function display() {
for (var i = 0; i < arrayLength - 1; i++) { // skip the last array item
window.open(windows[i]);
await sleep(1000); // avoid windows from not opening due to server restrictions
}
window.location.assign(windows[i]); // first/current window
}
display();
return true;
}
</script>
</body>
</html>