Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • 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
Kollaps
FARVEL BIG TECH
  1. Forside
  2. General Discussion
  3. A development idea - interactive html in posts

A development idea - interactive html in posts

Planlagt Fastgjort Låst Flyttet General Discussion
4 Indlæg 4 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • 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 sidst redigeret af
    #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 sidst redigeret af
      #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 on sidst redigeret af
        #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 on sidst redigeret af julian@community.nodebb.org
          #4

          JonathanRDD what the heck… did your account get compromised…

          1 Reply Last reply
          0
          Svar
          • Svar som emne
          Login for at svare
          • Ældste til nyeste
          • Nyeste til ældste
          • Most Votes


          • Log ind

          • Har du ikke en konto? Tilmeld

          • Login or register to search.
          Powered by NodeBB Contributors
          Graciously hosted by data.coop
          • First post
            Last post
          0
          • Hjem
          • Seneste
          • Etiketter
          • Populære
          • Verden
          • Bruger
          • Grupper