On Apr 14, 12:01 am, Eric Shulman <[email protected]> wrote:
> > TiddlyWiki already has an easy way of including http:// and file://
> > links. I'd really love it if support were added for Spotify links.
> > Here are a few examples of what these links look like:
> > spotify:user:passat_ecofuel:playlist:3bCdgV61L2bsPqntSf66cE
> > spotify:artist:5zjaF8JUdylMWrA7AVo3hJ
> > spotify:album:6m0NiddbaJOMalKjHRlrZX
> > spotify:track:4303mcjazJ1XBqpUxSYU07
> > At the moment, [[SomeArtist|spotify:artist:5zjaF8JUdylMWrA7AVo3hJ]]
> > doesn't work like [[SomeLink|http://google.com/]] does.
>
> Try this: create a tiddler tagged with 'systemConfig' containing the
> following single line of javascript:
> -------------------
> config.textPrimitives.urlPattern = "(?:spotify|file|http|https|mailto|
> ftp|irc|news|data):[^\\s'\"]+(?:/|\\b)";
> -------------------
> after saving and reloading, "PrettyLinks" using "spotify:" as the
> protocol should then be recognized as external URLs, like this:
> [[text to show|spotify:...]]
>
Thanks Eric, it works wonderfully! :-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---