Comments (9)
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.
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.
It should be possible, but perhaps you should explain your use-case.
from zerobin.
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.
There is already a CLI client for ZeroBin : https://github.com/ziirish/zerocli.
from zerobin.
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.
@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.
@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.
Or you can redirect user to data url.
from zerobin.
Related Issues (20)
- custom json code parse the page after clicking send button HOT 1
- Unmaintained? What fork to use? HOT 2
- code formatting in comments
- Not an issue!
- change default time expire HOT 2
- Access/Update bug/feature? HOT 1
- Client-side compression HOT 2
- Update README ASAP HOT 2
- Show dislaimer step on Burn After Reading consultation HOT 2
- Empty paste HOT 1
- Add short Link to Zerobin HOT 1
- Archive outdated repo @sebsauvage
- Prevent password input from autocompleting HOT 4
- Problem uploading text
- [information] Patch for read-only mode (zerobin archive, disallow new pastes) HOT 1
- Provide list of clients on project homepage
- Force no-cache HOT 2
- Combine paste ID with IP or salt when generating vizhash and other identifiers HOT 7
- Create ZeroBin package for Sandstorm, an open source web app package manager
- HTTPS - Certificate issues on sebsauvage.net HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zerobin.