mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
Convert Dropbox macro to naked js file
@sukima - this avoids duplicating the metadata
This commit is contained in:
parent
317f92b8a2
commit
98f78e50b8
@ -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
|
title: $:/edition/tw5.com/dropbox-url.js
|
||||||
type: application/javascript
|
type: application/javascript
|
||||||
@ -32,7 +25,7 @@ exports.params = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
exports.run = function(url) {
|
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>";
|
return "`" + url + "` <small>([[open|" + url + "]])</small>";
|
||||||
};
|
};
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user