Code Monkey home page Code Monkey logo

Comments (3)

szabodanika avatar szabodanika commented on June 12, 2024

This would really be useful as I myself use MicroBin over Discord a lot. The issue is that Discord uses a bot to visit the URL and takes the first image. Because there is no image displayed at https://url.com/monkey-dog-fox, it has nothing to show in the chat. What we could easily do is displaying image and video files on the pasta page instead of just making them downloadable, this would make MicroBin itself more user friendly, and it would help in use cases like this one as well.

from microbin.

szabodanika avatar szabodanika commented on June 12, 2024

Related: #58

from microbin.

flamion avatar flamion commented on June 12, 2024

I think it would be enough to set a few fields in the HTML header. There are fields that tell crawlers what to embed. A website for generating links that do something similar is stolen.shoes, if the link is pasted into discord or some other platform that looks for these fields it will embed the resource properly, but with stolen.shoes if the link is opened in the browser it will display something else (like the normal site).
image

Example link

from microbin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.