You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
because scripting on lively auto saved desktop is not versioned... and I had multiple tabs open... and closed an old one after a new one... the old one has overridden the new content :/
35
+
36
+
This is what I got... but there was some fancy Makefile, and auto reloading logic that evolved on that page that is now lost.
37
+
38
+
So let's recreate it.
39
+
40
+
```javascript
41
+
var downloads =document.body.querySelectorAll("input")
A specialty of the workspace is that it executes itself on page load automatically, by attaching a lively-script to its parent window.
104
+
```javascript
105
+
functionlivelyLoad() {
106
+
lively.sleep(1000).then(() => {
107
+
this.target.boundEval(this.target.value)
108
+
})
109
+
}
110
+
```
111
+
112
+
And it triggers a page reload with `location.reload()` that way it keeps executing across page reloads, allowing the page to get new cookies and generate and execute new download scripts until the downloads are finished. The whole mess could be replaced be getting the fresh cookie and extracting items, keys, and descriptions on the command line. But for this one-time-script it is not worth it... and the downloads are automated enough.
0 commit comments