src from iframe

An Alfred Workflow


Short Description

Extracts src attribute value from iframe tag in clipboard

Last Updated

16 Mar 2016

Compatibility

Yosemite
(10.10)
Mavericks
(10.9)
Mountain Lion
(10.8)
Lion
(10.7)
Snow Leopard
(10.6)
Yes Yes Yes Yes Yes
 

Version

0.1
 

Bundle ID

tgirardi.srcfromiframe
 

SRC attribute value from iframe

Alfred Workflow that extracts src attribute value from iframe tag

Example:

I have this in my clipboard:

<iframe frameborder="0" style="width:100%;height:207px" src="http://www.packal.org/%3Ca%20href%3D"https://www.draw.io/?chrome=0&db=0&od=0#G0B42SiLJg-CebR0o0UFZ1cWExODQ">https://www.draw.io/?chrome=0&db=0&od=0#G0B42SiLJg-CebR0o0UFZ1cWExODQ"></iframe>

And I want to get this:

https://www.draw.io/?chrome=0&db=0&od=0#G0B42SiLJg-CebR0o0UFZ1cWExODQ

How to use

  1. Copy some iframe tag into the clipboard
  2. Open Alfred
  3. Type isrc
  4. If all goes well you’ll receive a notification and the src value of the iframe will be on your clipboard ready to be pasted somewhere

Installation

  1. Download the latest release here
  2. Extract the zip or tar.gz file
  3. Inside the extracted folder, double click src-from-iframe.alfredworkflow

Use Case:

When an app gives you an iframe embed code and you just want the URL

Screenshots