Git Product home page Git Product logo

Comments (9)

nbraud avatar nbraud commented on July 24, 2024

If by “raw text version” you mean something that can be grabbed directly using curl (like on other pastebins), is would be impossible due to the use of client-side crypto.

from zerobin.

dietmarw avatar dietmarw commented on July 24, 2024

I see that problem. However it would still be nice to have a link to a paste that would then display not the standard view but the one one would get when manually pressing the "Raw text" link. E.g.,
http://sebsauvage.net/paste/?2715a090d99d11d6#Q+g7XP0PW+jso6Ww+Den5ch3VGJ+NPJ0MTqwq9P5S7g=&raw
should open up http://sebsauvage.net/paste/?2715a090d99d11d6#Q+g7XP0PW+jso6Ww+Den5ch3VGJ+NPJ0MTqwq9P5S7g= but then directly jump to the raw text version.
Would this be possible?

from zerobin.

nbraud avatar nbraud commented on July 24, 2024

It should be possible, but perhaps you should explain your use-case.

from zerobin.

ulikoehler avatar ulikoehler commented on July 24, 2024

I think it's possible to hack something together, either by creatively combining curl/wget, some sed-like tool and openssl (for decryption), or by using a small NodeJS, Python or similar script (which decrypts using the scripting language crypto).

I don't like the first option, but in the long term it might be nice to have an automatable fetch script.

from zerobin.

nbraud avatar nbraud commented on July 24, 2024

There is already a CLI client for ZeroBin : https://github.com/ziirish/zerocli.

from zerobin.

dietmarw avatar dietmarw commented on July 24, 2024

My usage case is simple. I would like to be able to share a link that ends up in a "clean" page with just containing the raw text and non of the rest of the interface.
Example: http://pastebin.com/raw.php?i=G6xBdZmQ

from zerobin.

ulikoehler avatar ulikoehler commented on July 24, 2024

@dietmarw I assume you don't want client-side JS to be included in the page. The problem is, this entirely bypasses the security feature (= the one feature that makes it different) of ZeroBin. Technically it is possible but I do believe you should not use ZeroBin if that's your usecase. Wikipedia has a list of OSS pastebins.

If you're OK with client-side javascript code being used however, you should have a look at my CSS style pull request. This allows you to use a ZeroBin theme that does contain nothing but the text itself (the specific pull request only allows CSS styling, one could add a config option for alternative templates, however).

from zerobin.

dietmarw avatar dietmarw commented on July 24, 2024

@ulikoehler Actually I would not mind the client side JS as. So I'll look at you CSS style pull request. So for my user case a appended &raw might simply just point to a plainer version of the normal page.

from zerobin.

marsjaninzmarsa avatar marsjaninzmarsa commented on July 24, 2024

Or you can redirect user to data url.

from zerobin.

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.