STEP 1 - CREATE AUTOSHARE COMMAND
- Open AutoShare
- Select Manage Commands
- Add a command
- Call it Tiny URL
- Give it an appropriate icon
STEP 2 - USE AUTOSHARE EVENT
- Open Tasker
- Create a profile with the AutoShare event condition
- Select the command you just created in AutoShare
- Accept and go to the task
STEP 3 - CREATE TINY URL AND SET CLIPBOARD
%astext contains the text that was shared into AutoShare, which is a URL when you share a web page from a browser into AutoShare
- Add the HTTP Request action
- Set the URL to http://tinyurl.com/api-create.php
- Set the Query Parameters to url:%astext
- Add a Set Clipboard action and set the clipboard to %http_data
- Add a Flash action showing the URL you just created
Done! Now when you share a URL into the AutoShare command you created you'll instantly get a short version of it on your clipboard!
If you want you can also convert a URL in an input field on any app to a Tiny URL. Here's how.
STEP 4 - CREATE TEXT PROCESSOR
- Open AutoShare
- Click on Manage Text Processors
- Create a new one called Tiny URL and give it the same icon as before
STEP 5 - CREATE PROFILE FOR TEXT PROCESSOR
- Open Tasker and name the existing task on the previously created profile to something like Convert to Tiny URL by long clicking on the task
- Create a new Profile with the AutoShare Process Text event condition
- Select the Tiny URL text processor
STEP 6 - MODIFY TASK TO PROCESS TEXT
- In the existing Task add an AutoShare Process Text action and set the Processed Text to the %http_data variable
- Exit Tasker with the back button to save
Now when you're editing some text in any app, select a URL > AutoShare > Tiny URL and the URL will be replaced with a tiny one
Create a Tiny URL from Tasker 2019-11-21
Learn how to make any URL small with Tiny URL and copy it directly to your clipboard
Recent Updates
- Added Text processor so you can convert when editing Nov 22, 2019