Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
We Distribute
  1. Home
  2. Uncategorized
  3. A development idea - interactive html in posts

A development idea - interactive html in posts

Scheduled Pinned Locked Moved Uncategorized
4 Posts 4 Posters 8 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • eeeee@community.nodebb.orgE This user is from outside of this forum
    eeeee@community.nodebb.orgE This user is from outside of this forum
    eeeee@community.nodebb.org
    wrote on last edited by
    #1

    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?

    T J 2 Replies Last reply
    0
    • eeeee@community.nodebb.orgE eeeee@community.nodebb.org

      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?

      T This user is from outside of this forum
      T This user is from outside of this forum
      tootsweet@lemmy.world
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • eeeee@community.nodebb.orgE eeeee@community.nodebb.org

        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?

        J This user is from outside of this forum
        J This user is from outside of this forum
        jonathanrdd@community.nodebb.org
        wrote last edited by
        #3

        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.

        julian@community.nodebb.orgJ 1 Reply Last reply
        0
        • J jonathanrdd@community.nodebb.org

          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.

          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.org
          wrote last edited by julian@community.nodebb.org
          #4

          JonathanRDD what the heck... did your account get compromised... that reply has nothing to do with the topic and reads like AI.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups