Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Generates QR code in terminal for public link #472

Closed
wants to merge 1 commit into from

Conversation

theevilhead
Copy link

Generates a QR code inside terminal for public links so that it will be easier to view on mobile & share

@Floriferous
Copy link

I was looking for this feature, would be a great addition, especially for free users when you have to type in the random URL into a mobile device.

@mislam
Copy link

mislam commented Jul 14, 2018

This will be a very useful feature. Instead of typing the long url on mobile, just take a snap with the camera and boom.

@rsmelo92
Copy link

Very useful, was going to implement it, thank you

@newtykip
Copy link

This is very helpful, but @inconshreveable won't be updating this anymore with new features like this. Maybe just fork it and put it there? @theevilhead

@theevilhead
Copy link
Author

This will be a very useful feature. Instead of typing the long url on mobile, just take a snap with the camera and boom.

@theevilhead theevilhead reopened this Jan 16, 2019
@theevilhead
Copy link
Author

@noneissome Yep you can find it here https://github.com/theevilhead/ngrok

@newtykip
Copy link

@noneissome Yep you can find it here https://github.com/theevilhead/ngrok

Shall check it out, thanks 😃

@skratchdot
Copy link

I was looking for similar functionality. I'm assuming the ngrok code has moved to a private repository?

Anyways, I found this b/c I was going to submit a PR for the "web interface" to show qr codes on the "status page". I couldn't find the source code for the current web interface, but I did find this pr. I decided to create a bookmarklet instead of submitting a PR (since I couldn't find the source).

For anyone interested, here is the bookmarklet:

javascript:(() => {const s = document.createElement('script');s.src = 'https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js';s.onload = () => {[...document.querySelectorAll('th')].filter(el => el.innerHTML === 'URL').forEach(el => {const td = el.parentElement.children[1];const url = td.innerHTML;const div = document.createElement('div');el.appendChild(div);new QRCode(div, url);});};document.body.appendChild(s);})();

https://gist.github.com/skratchdot/c99a52b9228faf72999ef1bea293fe15

@hamala69
Copy link

hamala69 commented Jun 8, 2023

code

pls i need to setup this

@developius
Copy link

Here's an updated version of @skratchdot's bookmarklet for newer versions of ngrok (tested against 3.3.1):

javascript:(() => {const s = document.createElement("script"); s.src = "https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"; s.onload = () => {[...document.querySelectorAll(".tunnels")].forEach(el => {const url = el.textContent; const div = document.createElement("div"); el.appendChild(div); new QRCode(div, url); }); }; document.body.appendChild(s);})();

@russorat
Copy link
Collaborator

Thank you for your contribution! This repository is no longer actively maintained. For the latest version of ngrok, please visit https://ngrok.com.

@russorat russorat closed this Dec 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

10 participants