A development idea - interactive html in posts
-
Something I've always thought would be incredibly useful, and it should not be difficult to do:
To have html/javascript run in a post. (If posted as one block in html tags).It works in widgets so should be possible in posts, as html gets picked up by the browser
Why would this be useful ... is to have all sorts of interactive things! I currently have some one file mini games and utilities that I put in widgets.Now, not sure how hard it would be to have activitypub also send html, so nodebb instances could share html posts between instances!
julian could Activitypub handle that? -
Something I've always thought would be incredibly useful, and it should not be difficult to do:
To have html/javascript run in a post. (If posted as one block in html tags).It works in widgets so should be possible in posts, as html gets picked up by the browser
Why would this be useful ... is to have all sorts of interactive things! I currently have some one file mini games and utilities that I put in widgets.Now, not sure how hard it would be to have activitypub also send html, so nodebb instances could share html posts between instances!
julian could Activitypub handle that?That's a tidal wave of account compromises waiting to happen. Not to mention JS worms that spread from post to post.
I guess unless you use some kind of JS sandboxing software like Google Caja or ADSafe. Still seems a bit risky, though. And lots of work to get right.
Edit: Oh. Caja is deprecated. But maybe Closure Toolkit? Anyway. Even if there are tools out there to make untrusted JS safer, I still think it'd be a lot of work to get right, and hard to know for certain if you have gotten it right until... well until it's exploited.
-
Something I've always thought would be incredibly useful, and it should not be difficult to do:
To have html/javascript run in a post. (If posted as one block in html tags).It works in widgets so should be possible in posts, as html gets picked up by the browser
Why would this be useful ... is to have all sorts of interactive things! I currently have some one file mini games and utilities that I put in widgets.Now, not sure how hard it would be to have activitypub also send html, so nodebb instances could share html posts between instances!
julian could Activitypub handle that?eeeee This usually happens when AdSense injects scripts before NodeBB finishes loading its own client files. The service worker fails to register and chat breaks for logged-in users. Try limiting AdSense to guests only or exclude the chat route from the plugin. If the problem disappears, you can report it to the plugin author to adjust the script order so it doesn’t block NodeBB’s core JS.
-
eeeee This usually happens when AdSense injects scripts before NodeBB finishes loading its own client files. The service worker fails to register and chat breaks for logged-in users. Try limiting AdSense to guests only or exclude the chat route from the plugin. If the problem disappears, you can report it to the plugin author to adjust the script order so it doesn’t block NodeBB’s core JS.
JonathanRDD what the heck... did your account get compromised... that reply has nothing to do with the topic and reads like AI.