1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-18 11:29:55 +00:00

Convert Dropbox macro to naked js file

@sukima - this avoids duplicating the metadata
This commit is contained in:
Jermolene 2015-06-15 10:07:19 +01:00
parent 317f92b8a2
commit 98f78e50b8

View File

@ -1,10 +1,3 @@
created: 20150607235625799
modified: 20150608032345215
module-type: macro
tags: $:/tags/Macro
title: $:/edition/tw5.com/dropbox-url.js
type: application/javascript
/*\
title: $:/edition/tw5.com/dropbox-url.js
type: application/javascript
@ -32,7 +25,7 @@ exports.params = [
];
exports.run = function(url) {
url = url.replace("www.dropbox.com", "dl.dropboxusercontent.com");
url = url.replace("www.dropbox.com","dl.dropboxusercontent.com");
return "`" + url + "` <small>([[open|" + url + "]])</small>";
};