Jump to content

Trigger: On clipboard update?

Recommended Posts

Hey there, 

I want a workflow that automatically cleans up links in my clipboard (for example, strip the "type=3&theater" from facebook links). For that, I would like to have my Alfred workflow to trigger whenever I update my clipboard, so that I can follow the logic after. 

How do I achieve that? :)


Thank you already

Link to comment

Alfred can’t run a workflows automatically whenever you update your clipboard. By design, Alfred needs to be deliberately called.

I’ve made LinkClean to clean links, but since I don’t use facebook I have no idea what unnecessary cruft they usually add to links, hence cannot clean it. If you can give me detailed examples of those, I can add them to the workflow (or you can submit them yourself).

Link to comment
  • 2 weeks later...
17 minutes ago, manavortex said:

I'll submit a feature request if I find out how. :)


To be clear, you don’t need to know how to clean them, you just need to give me detailed examples (links in both their “dirty” and “clean” states, showing what’s the part that can be safely removed).

Link to comment
21 minutes ago, manavortex said:

Hey there, 


I've submitted my feature request. Basically, I think that anything matching this regexes




could go..?


Thanks for your support!


Like I said, what I need are example links. If you try to make the regex for me, I won’t be able to find the optimal way to make it fit with the others.

Link to comment
  • 2 months later...
https://www. facebook.com/FunnyMommentsLOL/photos/a.1703119446610717.1073741828.1703117756610886/1879942035595123/?type=3&theater

https://www. facebook.com/FunnyMommentsLOL/photos/a.1703119446610717.1073741828.1703117756610886/1879942035595123/?type=3

https://www. facebook.com/FunnyMommentsLOL/photos/a.1703119446610717.1073741828.1703117756610886/1879942035595123/&theater


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...