I have the following extension:
#popclip
name: Remove Wikilinks
regex: \[\[(.*?)\]\]
icon: strike [[
javascript: popclip.pasteText(popclip.input.text.replace(/\[\[(?:[^|\]]*\|)?([^\]]+)\]\]/g, '$1'))
description: Removes wikilinks
stay visible: true
What about the following behaviour: When the regex is matched, the first extension using this regex is highlighted on the PopClip bar (and thus can be executed faster) by pressing return
.