dub
dub copied to clipboard
Create a short link from the currently open page
It would be a life saver if I could click a bookmark link in my bookmark bar and get a short link, like this: Link:
javascript:void(location.href='https://dub.sh/?longurl=%27+location.href);
or some such. And then I can paste it in slack, Messages, Twitter, etc. Quick and easy.
Oooh interesting! You mean like a Chrome Extension?
I think this could be added as a bookmarklet, people copy the js and bookmark it or drag the link into the bookmark bar.
This could either pass the URL to shorten as an argument in the dub.sh link like above or give an alert, both of which would require server changes.
I could try to work on updating the main page to add these links if the server gets updated if needed?
I think it is called a bookmarklet. It is a bookmark that is a JavaScript code. It creates a short link from the currently displayed page. The original wording was (courtesy of archive.org):
Quick Short URL in the toolbar
Drag this link: (JavaScript link) to your browser toolbar. From now on, to generate a short URL from the page currently viewed in the browser, just click the link in the toolbar.
Oooh interesting! You mean like a Chrome Extension?
I don't think there is a need for a full blown extension, unless you add some other functionality that is unique and nesesitates an extension.
We can create a extension with features like searching for the url directly in the search bar or some other features included. Happy to assist and help in building.
Interested in picking this up when I get time next :D (maybe in a week, we'll see). Seems like it'll be fun to work on.