equal
deleted
inserted
replaced
60 { label: 'my', custom: function() { |
60 { label: 'my', custom: function() { |
61 var [t, u, s] = get_tus(window, document); |
61 var [t, u, s] = get_tus(window, document); |
62 s = s.replace(/\n/, "\n "); |
62 s = s.replace(/\n/, "\n "); |
63 return t + ":\n - " + u + (s? ("\n >>\n " + s + "\n <<"): ''); |
63 return t + ":\n - " + u + (s? ("\n >>\n " + s + "\n <<"): ''); |
64 }}, |
64 }}, |
|
65 { label: 'sc', custom: function() { |
|
66 var t = content.document.title; |
|
67 var u = content.location.href.replace(/^.+ScrapBook\/data\//, ''); |
|
68 return '[sc] &scrapbook(' + t + ',' + u + ');'; |
|
69 }}, |
65 { label: 'datestr', custom: function() { |
70 { label: 'datestr', custom: function() { |
66 return '[' + content.location.href.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']'; |
71 return '[' + content.location.href.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']'; |
67 }}, |
72 }}, |
68 ]; |
73 ]; |
69 })(); |
74 })(); |