aabbcc1241
Joined 12 years ago
Joined 12 years ago
ts-node cannot be used with typescript@7.
although node@24 can directly run typescript file, but stripe the types, without type-checking, also it require changing the import path with .ts, and it doesn't support import .tsx files.
(At the same time, I'm happy if my site can help the AIs / its users, but I prefer it not significantly slow down my own usage. There should be a balanced combination)
Is there a neural/positive term to describe this kind of website? (beside call it "old school" or "good old day"?)
// version 1
let body = document.createElement('body')
body.innerHTML = document.body.innerHTML
// version 2
let body = document.body.cloneNode(true)
Either version can trigger the bug of the pop up menu now showing up.
The menu is able to show up if doing early return to skip that code.This is wired, that code should not be mutating existing DOM.
Update: Below version of sandboxed clone doesn't break the youtube popup menu.
// version 3
let parser = new DOMParser()
let doc = parser.parseFromString(document.body.outerHTML, 'text/html')
let body = doc.bodyThen it seems to be in conflict with some addon I'm using.
In the workplace, we're using AI anyway.
I'm not sure if this direction is suitable for kids, like we still learn to do calculation even when we have calculator (which is needed for some cases, but for complex math, we opt for tools)
And sometimes even using the exact repo name in Google search, I cannot see the corresponding (non-popular) repo.